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