"Joseph S. D. Yao" <jsdy @
> > Date: Fri, 19 Jul 1996 10:21:09 -0600
> > From: Geoff Mulligan <geoff @
> > Subject: Re: [HELP] I lost root password!
> > Here is the cookbook method to remove the root password:
> > 5. Once the drive is mounted type:
> > ed /mnt/etc/shadow
> > /^root:/c
> > root:::::::
> > .
> > w
> > q
> Oh, no!!!! Do you really want to eliminate user ID, group ID,
> description (not particularly useful, but ...), home directory and
This is the shadow file not the password file that is being edited.
user id, group id, gecos field, home dir and shell are NOT stored in
> A better set of 'ed' commands to use if you just want to (*shudder*)
> eliminate the root password is:
> or, much better, to replace it with another encrypted password whose
> unencrypted value you know:
We running in single user mode! Why shudder about removing the root
password. After removing the root password just reboot into single user
mode and set the password. These other ed commands are just much too