Change the administrator password in single-user mode in Linux

Source: Internet
Author: User

Change the administrator password in single-user mode in Linux

Use CentOS 6.6 in Linux

1. Press e or enter to enter the GRUB Startup Menu after starting the instance, as shown in figure;

2. Press e to enter the editing mode, and move the up/down key to switch to the 2nd line of kernel;

3. Press e to enter the kernel to edit the command line. For example, enter single, s, or 1

After entering the information, press enter to save and return to the upper-level Startup menu. Press B to start the system.

4. You do not need to enter the administrator password to start the system. In single-user mode, you can run the passwd command to change the administrator password;

5. single-user mode running level

Enter 1. The running level is displayed

[Root @ yong ~] # Runlevel

1 S

The input s or single running level is displayed

[Root @ yong ~] # Runlevel

N S

In single-user mode, the network cannot be connected, which is equivalent to Windows security mode.

This article permanently updates the link address:

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.