We are under the Linux system, the most important user is the root user, if the root user password forgotten, a lot of operations will not be done!
If you forget, how do you do it?
1, restart the boot, when the Start screen appears, press "E";
2, after the implementation of the previous step, the system will enter the Grup boot interface, select their own system corresponding to the kernel, continue to press "E";
3, after performing the previous step, then an editable interface appears, add "single" at the end, and then confirm;
Single, which means that the configuration in boot can be modified by the one-user state.
4, after performing the previous step, the interface returned to the previous interface, at this time press "B";
b, refers to the boot
5, after performing the previous step, the system will load the configuration in boot, at the end of the editable place ("#" after), knock "passwd root", and then enter two times the new password,
This completes the reset of the root user password!
What if I forget the root password under the CentOS system?