So, you’ve forgotten your root or admin password to your Ubuntu pc and you need to reset the password. If that is the case, then just follow the steps below and you will be reseting your password in just a matter of minutes:
1.) When you turn on your Ubuntu pc, and it starts to boot, press ESC to access the GRUB boot menu.
2.) Once the GRUB boot menu is showing, Highlight the first option and press E to edit the selection. The selection should look something like this: Ubunut 9.04, kernel 2.6.28-18-generic. It will depend on what version of Ubuntu you are using…
3.) Scroll down and highlight the line that looks like this: kernel /boot/vmlinuz-2.6….. and press E to edit.
4.) Change ro quiet splash to rw init=/bin/bash. Then press ENTER.
5.) Now you should be able to press B to boot up your system into a root shell prompt.
7.) Once you have booted to your root shell prompt, just type passwd root or passwd admin or whatever username you need to change the password for.
8.) You will then want to type the following commands:
That’s it, your password is now reset.