Saturday, December 13, 2008

Password Reset in Linux (Ubuntu Recovery Mode)

Here is another password recovery post that I previously used for dual boot system with Grub:
http://cybercamping.blogspot.com/2007/04/easy-password-reset-in-linux-using-grub.html

This post explains how to reset a password using Ubuntu's Recovery Mode. I used it on my Ubuntu 8.10 VM running under Windows.
1. Boot the machine and hit ESC few times to skip hardware boot options, and go into the grub menu
2. Select a Recovery Mode option.
3. If a Recovery Menu window popped up, select "root Drop to root shell prompt"
4. Type 'passwd ', hit enter and select your password.

To see the list of user names on the machine, look in /home/ directory (ls /home). Also, one can check the passwd file (tail /etc/passwd).

No comments: