Original address: http://www.dedecms.com/knowledge/servers/linux-bsd/2012/0819/8378.html
Description
Operating System: CentOS 6.0
A problem: Forget the Administrator account root password, can not enter the system
Workaround: Reset the root password to 123456
Operation:
Start the system, press the ESC key above the keyboard before entering the system, will enter the following interface
Press the E key on the keyboard to display the following interface
Use the arrow keys on the keyboard to move the cursor to the second item, and then press E above the keyboard, the following interface appears
Enter a space bar, and after entering the number 1, enter, the following interface appears
This time the cursor is still positioned in the second item, continue to press the B key above the keyboard, the system will automatically restart, into the following interface
Reset Root Password now
Input passwd root, enter
Required to enter a new password, enter 123,456 return
Re-enter 123,456 return car
See Passwd:all Authentication tokens updated successfully. Line
Description Password Modified successfully
Now reboot the system and enter Shutdown-r.
After the system restarts automatically, enter the root return, enter the password 123456, the system login success
At this point, the root password has been reset to 123456
CentOS Forgot root Password solution