In the process of using Linux sometimes lost the root user password, then we can enter the single user mode to reset the root user password, the following explains the way to reset the root password, but also to crack the root password method.
1, restart the server, in reading seconds when pressing any key, will appear the following interface
Press ' E ' in the keyboard in this interface to enter GRUB mode
2, in 1, press E will enter the following interface.
Move the cursor to the kernel line, and then press ' E ' again to enter the kernel edit screen
3, this is the kernel editing interface
4, in the kernel editing interface, click the space bar, and then enter a single, and press ENTER ENTER to exit the kernel editing interface
5, exit Kernel interface will return to the GRUB mode interface, this interface again move the cursor to the kernel line, and then press ' B ' to start the system
6, this time the system will come to single-user mode, do not need to enter any password can be directly into the system
7, in single-user mode, we can directly modify the password
8, the change is complete, restart the server to enter the normal mode
Linux-centos Resetting the root password