*BSD News Article 69322


Return to BSD News archive

#! rnews 1346 bsd
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!inquo!bofh.dot!vyzynz!bofh.dot!news.dacom.co.kr!news.kreonet.re.kr!bofh.dot!usenet
From: Minsung Kim <stair@chiak.kaist.ac.kr>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: HELP: lost root passwd
Date: Sat, 25 May 1996 00:20:32 +0900
Organization: Korea Advanced Inst. of Sci & Tech
Lines: 22
Message-ID: <31A5D3C0.41C67EA6@chiak.kaist.ac.kr>
References: <slegter.832754504@ruunat.fys.ruu.nl> <Drsz7s.MJq@ritz.mordor.com>
NNTP-Posting-Host: stair-s.kaist.ac.kr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.02 (X11; I; FreeBSD 2.1-STABLE i386)

Chris Mauritz wrote:
> 
> Boot in single user mode (type -s at the "boot:" prompt).
> Type "passwd your.password.goes.here"
> shutdown -r now
> 

Just a moment.  Before doing that the root filesystem must be
mounted as read-write rather than read-only (the default in
single-user mode), otherwise you won't be able to modify your
/etc/passwd file.  Remount is done by:

# fsck -p
# mount -u -o rw /

Then run passwd as usual.

--
Stair

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Kim, Minsung <stair@chiak.kaist.ac.kr>            CS Dept., KAIST