Linux forgot root password--Enter single user mode to change root password

Source: Internet
Author: User

In the use of Linux systems, the host maintenance personnel often encounter a problem, that is, in the user with root account permissions and passwords, always appear to forget the root password situation.

In this case, in general, our host maintenance staff will be the most common method of root password reset, that is, single-user mode.

First, consider the concept of single-user mode: Http://baike.baidu.com/link?url= Hcy6fmjdxmtvnlih9a9l2hc5ndhpzs0onafqwmzc0e5iuy5onkfd5vhaukzwhq3bgi9bypwwvunv_qu-yxxrbk

Secondly, one of the most prominent and practical advantages of single-user is: can login without password, so, in the forgotten password, you can enter the single-user mode to modify the login password.

Finally, take a look at how to enter Linux single-user mode and change the root password.

1. When the Linux system starts the kernel boot sequence selection interface, the Linux boot is allowed to boot to the kernel selection stage via the Up and down keys (other keys).

When the following interface appears, enter the lowercase letter e as prompted:

2. Enter e after entering the following interface:

In the display screen above, select kernel start this and press E to enter kernel edit mode.

2. After entering e into edit mode, enter: Space single, as follows:

3. If the input space on the single after press ENTER to edit the finished, after editing back to the second interface, after the end of pressing B reboot the system, this back to the system after the boot

Directly into the root user mode, in this mode you can use the root function, and then you can directly use the passwd command to modify the root

Password. Specific operations such as:

The above operation is to enter the single-user mode to modify the root password, to resolve root password forgetting and root user is locked and so on need root permission to execute and the root account can not be used.

Linux forgot root password--Enter single user mode to change root password

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.