Reset root Password in CentOS
Retrieve the root password locally in CentOS
Speaking of system passwords, it may be the biggest headache for administrators. If there are many internal services, You need to record a lot of passwords. Of course, the possibility of forgetting the password is also not ruled out. We have already introduced how to retrieve the password in windows, in fact, the old Mao Tao tool is used to encapsulate the demand to implement windows password cracking, but it does not need to be so troublesome in linux. You only need to set it in the local boot option. What about today, we mainly introduce the two linux versions that are frequently used in daily work for root password retrieval. One is centos and the other is mongout. For details, see:
First, how to retrieve the root password in centos:
First install a centos for testing:
Select the functional software to install
Installation Complete
Start to forget the centos root password retrieval. After we restart the system, pressESC enters the system option list, then we can see the current system information, and then we press (Note: Do not press Enter)
Then weSelect option 2-kernel, and then press"E"
After rhgb quietEnterSingle or1, thenEnter
Then press enter, return to the interface, and then pressB.Reboot the system
After the startup, we found that the system was directly accessed and there was no need to enter the account and password
After entering, we canPasswd root to change the password