Linux Server Entry and Exit Single User Mode

Source: Internet
Author: User

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 !!

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.