Linux forgot root (here is the CentOS 6.5 example) password solution

Source: Internet
Author: User

In the process of using Linux, sometimes forget the root user's password (especially when the handover and the content of the document is not complete), this time we can enter the single-user mode to reset the root user password. Here's how to reset the root password, or how to hack the root password.

Hundred Cattle Information Technology Bainiu.ltd organized and published in the blog Park

1, restart the server, in reading seconds when pressing any key, will appear the following interface

Press ' E ' in the keyboard in this interface to enter GRUB mode

2, in 1, press E will enter the following interface.

Move the cursor to the kernel line, and then press ' E ' again to enter the kernel edit screen

3, this is the kernel editing interface

4, in the kernel editing interface, click the space bar, and then enter a single, and press ENTER ENTER to exit the kernel editing interface

5, exit Kernel interface will return to the GRUB mode interface, this interface again move the cursor to the kernel line, and then press ' B ' to start the system

6, this time the system will come to single-user mode, do not need to enter any password can be directly into the system, in single-user mode, we can directly modify the password.

7, the change is complete, restart the server to enter the normal mode

Linux forgot root (here is the CentOS 6.5 example) password solution

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.