Subject: Re: forgot root password?
To: Mike Cheponis <mac@wireless.com>
From: Peter Seebach <seebs@plethora.net>
List: netbsd-help
Date: 05/24/2000 00:11:57
In message <Pine.BSI.4.05L.10005232129570.11949-100000@NameServer.Culver.Net>, 
Mike Cheponis writes:
>Thanks for all the help.  My friend solved the problem like this:

><space> while boot loader counts down
>boot -s
>fsck -y /
>mount -u /
>fsck -y /usr
>mount /usr
>vi /etc/passwd <-- delete password
>passwd

The "vi /etc/passwd" phase is totally irrelevant.  If you're in single user,
you're root, and you can set whatever passwords you want.  Furthermore,
/etc/passwd is never actually consulted, nor is master.passwd unless you're
making the database with pwd_mkdb.

-s