CentOS Forgotten root Password, reset method

Source: Internet
Author: User

Today re-installed a centos6.6, as if the root password did not call me to set it, and then use the virtual machine to start the installation before the password login display failed, so there are the following eggs ..... Helloween ...

In the virtual machine installed CentOS, today to boot but forget the password, so began to find the method of Baidu Reset, after experimental operation, really effective, the method is now recorded as follows:

(1) Restart CentOS, during the boot process, press and hold "ESC" key to enter the GNU GRUB interface.

(GNU Grub is a multi-os boot program from the GNU Project.) Grub is the implementation of a multi-boot specification that allows users to have multiple operating systems at the same time on the computer and select the operating system that they want to allow when the computer starts, grub can be used to select different cores on the operating system partition, and can be used to pass boot parameters to those cores.

(2) Select the system you want to enter and press the "E" key (Edit the command before starting).

(3) Select the kernel "kernel" of the second operating system and press "E" key (Edit the selected command in the boot order).

(4) after "RHGB quiet" interval, enter "1" or "single", press ENTER to save. (Pass boot parameters to the kernel and enter single-user mode)

This time back to the grub interface.

(5) At this point, press "B" key to start the system.

(6) Enter the command line "passwd root" to re-modify the root password, press "enter" key.

(7) Enter a new password, press ENTER to save it, and then re-enter the confirmation password.

(8) If the "All authentication tokens updated successfully" prompt appears, the password modification is successful.

(9) Enter "Shutdown-r Now" command line, restart the system, you can use the root account login.

CentOS Forgotten root Password, reset method

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.