Computer room A CentOS system server, because this server system installed a long time, and the root password update several times, back to the computer room on-site maintenance, login password forgotten, sad urge ah ~
No way, only the boot into "single user mode" for password reset .
The following document describes the process of changing the password by booting into single user mode:
(1) Restart the server and wait until the booting CentOS interface. Press the ENTER key quickly;
(2) In the Grub interface, press the E key (in fact, after the boot I was always press the E key can also go to the following interface);
(3) in the root (hd0,0) interface Select the second item kernel, press the E key;
(4) in <rdtype=pc keytype=us # # # #项后添加 blank single press ENTER key;
(5) Back to root (hd0,0) interface, press B to restart
If you do, you can go to single user mode and reset the root password. Finally restart the server, with the new Reset password Login Server ~!
***************************************************************************************
In fact, in short, forget the root password, the process of cracking:
Single-user mode: Power-on press e--> continue input e--> cursor moves to kernel-->e edit-space Enter 1 or single Enter and press B to enter the mono-user mode
Then enter the input passwd root password to enter the password two times and then reboot into 3 mode
Solutions for Linux system root password forgetting