Linux Server Entry and Exit Single User Mode
Here we will first reference a passage from someone else:
System. At this time, the remote user is equivalent to the second user.
But I'm sorry, because you have enabled the single-user mode before, and you cannot run it remotely.
I encountered this embarrassing problem. The server is not in the single-user mode...
Next, let's talk about how to enter the single-user mode and how to exit.
Here, my server is Centos6.2.
During Linux boot, press e on the keyboard to enter the GRUB menu interface.
When the GRUB boot screen appears (CentOS (.....)), Press the e key to enter the GRUB editing status.
Move the cursor to the line of kernel... and then press "e" to edit the command line,
Add a space single at the end of a line in the kernel and press Enter.
Press "B" to start the system, that is, enter the single-user mode,
At this time, you can use the passwd command to change the password.
Passwd root
Restart reboot after modification.
You can.
How do I exit the single-user mode ??
This is a good question, because it cannot be remotely, so you only have to run to the server, and then save the existing work.
Then reboot your server. You can.
It is because under normal circumstances, the server is a multi-user by default !!