Linux Server entry and exit single user mode

Source: Internet
Author: User
Tags line editor

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.