Here's a quote from someone else first:
First of all, single-user mode is only one user can enter, for example, you open the server, is running,
Then at the same time you want to remotely enter the system on another computer, at this time you are the equivalent of a second user.
But sorry, because you opened the single-user mode, now you want to remote is not operational.
I just met this embarrassing problem, the server was not in the single user mode ...
Next talk about how to enter single-user mode and how to exit.
Here my server is the Centos6.2 version.
When Linux boots, press E on the keyboard to enter the Grub menu interface.
When the Grub boot screen appears (CentOS (..... ), press the letter E key to enter the grub edit state.
Move the cursor to the kernel ... That line, and then typing "e" into the command line editor,
Add a space at the end of the kernel line single, enter
Type "B" to start the system, i.e. enter single-user mode,
This time you can use the passwd command to change the password.
passwd Root
After the change, reboot restarts.
You can do it.
How do I exit single user mode??
This question is good, because it cannot be remote, so only run to the server, and then save the existing work.
Then reboot your server. You can do it.
is because the normal situation, the server default is multi-user!!
Linux Server entry and exit single user mode