How Linux modifies the root user's password

Source: Internet
Author: User

The root account of the Linux system is a very important account, but also the most privileged account, but sometimes forget the root password to do? Can not re-install the system, this is the next worst, in fact, Linux system, if you forget the root account password, you can enter the single user mode or other methods to modify the password. Of course, the specific way is related to boot Loader, OS, GRUB and Lilo are implemented differently. Boot Loader is a small program that runs before the operating system kernel runs. With this applet, we can initialize the hardware device and establish a mapping of the memory space to bring the system's hardware and software environment to a suitable state to prepare the correct environment for the final call to the operating system kernel. Here is a look at Red Hat Enterprise Linux 5 forgot the root password, how to modify the root account password: Forced to restart the Linux system, enter the interface shown below, you can press the up and down keys, select an option and then press "E" key.
Enter the following Grup interface

Select the second and then press the E key,
Press the left cursor, enter the next, and then add a single in front of the RO or root, press ENTER, and then press "B" key to start the Linux system into one-user mode

As shown below, when the boot is complete, enter passwd root to modify

After setting the new password, execute the restart command and reboot the system.

How Linux modifies the root user's password

Related Article

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.