Solutions for Linux system root password forgetting

Source: Internet
Author: User

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

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.