How to reset the root password in Ubuntu
By Koder at Wed, 07/15/2009 - 03:14
Before I start, I will like to mention a couple of things which might come as a surprise to even a not so newbie user on Ubuntu. By default, you will need "sudo" (stands for substitute user) privileges to install or change any system level programs or features due to security. This password will be the same as the password you had set when installing Ubuntu. Root is a different user altogether, some folks tend to thing that by default Ubuntu does not have a password set for root, thats why when you do the "su" command and try and provide the root password, it never works. This is a misconception, root always has a password but its not revealed by default, because Ubuntu designers do not want you to be logging on as root for good security practices.
- Reboot your machine, when you are at the reboot screen on the "Grub Boot Loader" menu screen (shown in the picture here), press the escape key, it will present you with a menu as shown in step 2
- Pressing ESCape in the previous step will bring you the menu as shown here
- Highlight the line that begins with the word "kernel" then press 'e' on your keyboard to edit it
- Now add the following at the end of the line that you are editing, exactly, without the quotes "init=/bin/bash" and hit enter
- You will now be sitting at the shell prompt logged on as root without specifying a password