Reset and retrieve the root password locally in Linux (CentOS and Ubuntu)

Source: Internet
Author: User

Reset and retrieve the root password locally in Linux (CentOS and Ubuntu)

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 Ubuntu. 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 forgetting to retrieve the CentOS root password. After restarting the system, Press ESC to go to the System Option List. Then we can see the current system information and press E (Note: not press Enter)

Then we select the second item-kernel, and then continue to press "E"

After rhgb quiet, press enter to enter single or 1, and then press ENTER

Press enter and return to the interface. Then press B to 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 can modify the password Based on passwd root.

  • 1
  • 2
  • Next Page

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.