Resetting the Root Password of RHEL-6
Posted: Fri Jul 29, 2016 2:47 pm
Use RHEL 6 DVD.ISO [1], attach it on the DVD/CDROM, and boot this ISO first on your GuestOS, in order to go to Rescue Mode [2].
Once the ISO is booted, please follow the instructions [3] on how to get to a shell, mount up the root filesystem, and then editing the /etc/shadow file.
When you edit the /etc/shadow file, remove the password string in the _second_ column and save the file.
# /etc/shadow - original
root:LONG_PASSWORD_STRING:16643:0:99999:7:::
# /etc/shadow - with no password entry
root::16643:0:99999:7:::
Follow the article on how to exit the shell and reboot your system back to see if you can just press 'ENTER' when it prompts you for the root password.
Here is another article on the quick steps to go into Rescue Mode [4].
Let us know if you have any questions.
Thanks!
Sam Yangsao
[1] https://access.redhat.com/downloads/con ... t-software
[2] https://access.redhat.com/solutions/1192
[3] https://access.redhat.com/documentation ... escue_Mode
[4] https://access.redhat.com/solutions/770703
Once the ISO is booted, please follow the instructions [3] on how to get to a shell, mount up the root filesystem, and then editing the /etc/shadow file.
When you edit the /etc/shadow file, remove the password string in the _second_ column and save the file.
# /etc/shadow - original
root:LONG_PASSWORD_STRING:16643:0:99999:7:::
# /etc/shadow - with no password entry
root::16643:0:99999:7:::
Follow the article on how to exit the shell and reboot your system back to see if you can just press 'ENTER' when it prompts you for the root password.
Here is another article on the quick steps to go into Rescue Mode [4].
Let us know if you have any questions.
Thanks!
Sam Yangsao
[1] https://access.redhat.com/downloads/con ... t-software
[2] https://access.redhat.com/solutions/1192
[3] https://access.redhat.com/documentation ... escue_Mode
[4] https://access.redhat.com/solutions/770703