Recover linux password in RHEL 6 step by step.
To recover linux password or linux password recovery the steps are as fallows
Distrub the normal boot by pressing any key when RHEL 6 booting screen is displayed
You will be inside the menu like the following.
press “e” to edit the kernel parameter, it will show following menu.
Move the cursor to 2nd line (line of kernel) press “e” to edit the kernel parameter.
Type “1” after the line to boot in maintenance level and press enter to continue.
It will following options.
Now, type “b” to boot it in single user mode. Then you will be in single user mode.
Now without being prompted for password you will be logged in the single user mode
To change the password use command #passwd, but as you can see it will not work because of seLinux.
Check the SELinux mode by using #getenforce command.
As we can see that SELinux is in Enforcing mode, Change it to permissive and then try changing the password.
Change the SElinux Mode to permissive, Using
Now try to change the password using # password command
Okey, Now we are successfully changed the password, now just type exit or reboot, For reboot the system and try the new password for root.
When you type exit or reboot and press enter it will show above picture process..
I Hope you enjoyed reading this post.. Comment us and Share.