Monday, June 16, 2008

Reset Root Password

Forgetting password is not a new thing. People forget the password but they don't know how to recover it. They simply format their system and run away with it. Here I am telling you how to solve the problem if you ever face this situation. But this solution is for GRUB users only.

At the start of the booting, open the grub screen.
Press 'e' when the menu appears to edit the boot parameters.
Just select the kernel line for the kernel you want to boot. Go to the end of that line and type "single" as a separate word, then press ENTER to exit the edit mode.
Once back at the GRUB screen, press "b" to boot into single user mode.
This will make you the "root" user without asking for a password. Once the system has booted, you can change the root password using the password command. (passwd)

I hope this will serve as a ladder when you fall in this pit.

2 comments:

Personal Property said...

That is one awesome post!

Good to see, you are going deep into linux.

I will sure give this a try.

Gaurav Arora said...

will giv a try ... definitely..
On one of mine frnds pc ... :)