Linux enters single-user mode and retrieves root admin password

Source: Internet
Author: User

The role of single-user mode

In the Linux system, maintenance personnel often encounter a problem, that is, in the user who has root account permissions and passwords, will always appear to forget the root password situation.

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

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.

Rebooting the system

When the Linux system starts the kernel boot sequence selection interface (such as the countdown screen) Press any key on the keyboard to let Linux boot the stay kernel selection stage through the upper and lower keys (any key can also) let Linux boot to the core selection phase.

Press any key at the time of the previous interface to enter the interface, type the lowercase letter e as prompted, and go to the next step

After entering such as interface, select kernel start this (the second) press the key E to enter the next step

After entry will be shown as this interface enter a space single and press ENTER to edit finished

After editing, go back to the second step interface, direct input b reboot the system, the system restarts will be directly into the root user mode, in this mode you can use the root function of things

Restart the system if you enter B in the previous step as shown in single-user mode after waiting for a while

Enter the single-user mode passwd can change the password, and then you can directly use the passwd command to modify the root

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 enters single-user mode and retrieves root admin 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.