Wednesday, September 10, 2008

Password Reset

If you forgot you password for your Ubuntu system you can recover using the following steps:

1. Turn your computer on.
2. Press ESC at the GRUB prompt.
3. Press e for edit.
4. Highlight the line that begins "kernel ………", press e
5. Go to the very end of the line, add rw init=/bin/bash
6. Press enter, then press b to boot your system.

Your system will boot up to a passwordless root shell.

Type in passwd "Username"
Set your password.
Type in reboot

*If you don't know your username or the root password you could follow the same steps to reset the root password; just type in passwd root instead of passwd "Username". Then after having reset the root password you could ssh from another box to your box login with the root credentials and browse the home folders for the Usernames.

No comments: