On Mon, 27 Aug 2001, Nikhil Joshi wrote:
recently installed linux on my friend's comp. Now somehow he has forgotten the root password. Is it possible to recover the lost password? The password file is shadowed.
Boot from a boot floppy or a rescue disk. Mount the root file system. Edit the shadow file. Delete the encrypted password. Restart the machine, and reset your password.
Philip
Alternatively, you can boot in God mode / maintenance mode (i.e., Runlevel 1) and directly run the passwd command. It doesn't ask for the old password, directly prompts for a new one.
Regards, Shailesh.