Search This Blog

Sunday, September 25, 2011

How to recover root password in RHEL 6 ?

Boot the system and log in into grub.









Press ‘e’ on the selected entry.

Then select the ‘kernel /vmlinux’ entry and press ‘e’ on it.



Insert the ‘single’ keyword after rhgb quiet.


Press enter

Then press b after selecting the ‘kernel /vmlinux’ entry.

Then on the root prompt issue the following command.
passwd  –d  redhat







this will set the password to blank.

Now boot the system as usual and reset the password by logging into the root account.

2 comments: