Subject: Re: Unable to set root password
To: None <>
From: Space Case <>
List: macbsd-general
Date: 12/21/1993 16:30:06
>Does anyone else have this problem ? I install MacBSD, boot up in single
>user mode, "passwd root" doesn't work, so I edit /etc/master.passwd and
>remove the root password by hand, hit ^D to go to multiuser, and am still
>unable to login as root !!!!
>ie /etc/master.passwd looks something like:
>root::0:0::0:0:Charlie &:/root:/bin/csh
>    /\
>    ||
>     ==================  password was here
>Surely someone must have found how to set a new root password.....

This is what I did:
When I first booted single-user, the root filesystem was mounted read-only.
I issued the command `/sbin/mount -u /` to mount it read-write.

I then edited master.passwd to remove the root password, then did a
`/usr/sbin/pwd_mkdb -p /etc/passwd` to regenerate the password database.

After that, everything's fine.