mikelindner.com

powering the Internet since 1995

| Photography | Computing | Cooking |

New method for resetting root password in RHEL / Centos 6

November 16th, 2011

They’ve changed it a little, still, press “a” at grub to get the append kernel parameters line, still add ” single” to the end of it.

BUT instead of using passwd (this really confused us) which just returns to the next line without asking for a password use:

passwd -d root

This blanks root’s password so when you reboot it doesn’t ask for a password!  Freaky stuff!