You may forget the Root password which is hard to believe, but it does happen everyday. here is the tips to recover the root password for Centos.
no way to get root access.
Now, Press ‘e’ to edit the command line. we need tell the kernal boot from graphics mode to single user mode
user arrow key up/down to select the kernal line,
now you can type new root password.
enjoy....!!!
no way to get root access.
Now, restart the VM and boot to the geekmode. by press any key, or CTL+X to the grub mode.
user arrow key up/down to select the kernal line,
Press e, to edit the command line, you will see the follow screen,
Now, it is on the grphics mode, rhgb=red hat graphical boot
Now, it is on the grphics mode, rhgb=red hat graphical boot
Let’s change it to single user mode, by replacing the rhgb quiet.
Before,
Before,
after
Press enter to switch the parent screen. then press b to boot the single mode kernel, you can tell linux single is there
Once Done, you are in single user mode.
remember the password this time, no typo please.
remember the password this time, no typo please.
now you can type new root password.
enjoy....!!!