The role of single-user mode
In the Linux system, maintenance personnel often encounter a problem, that is, in the user who has root account permissions and passwords, will always appear to forget the root password situation.
In this case, in general, the maintenance staff will be the most common method of root password reset, that is, single-user mode.
Secondly, one of the most prominent and practical advantages of single-user is: can login without password, so, in the forgotten password, you can enter the single-user mode to modify the login password.
Rebooting the system
When the Linux system starts the kernel boot sequence selection interface (such as the countdown screen) Press any key on the keyboard to let Linux boot the stay kernel selection stage through the upper and lower keys (any key can also) let Linux boot to the core selection phase.
Press any key at the time of the previous interface to enter the interface, type the lowercase letter e as prompted, and go to the next step
After entering such as interface, select kernel start this (the second) press the key E to enter the next step
After entry will be shown as this interface enter a space single and press ENTER to edit finished
After editing, go back to the second step interface, direct input b reboot the system, the system restarts will be directly into the root user mode, in this mode you can use the root function of things
Restart the system if you enter B in the previous step as shown in single-user mode after waiting for a while
Enter the single-user mode passwd can change the password, and then you can directly use the passwd command to modify the root
The above operation is to enter the single-user mode to modify the root password, to resolve root password forgetting and root user is locked and so on need root permission to execute and the root account can not be used.
Linux enters single-user mode and retrieves root admin password