Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What if Linux forgets the root password?

Shulou Source: shulou.com Published: 2022-06-02 05:35:37 10月02日 Update

This article mainly explains how Linux forgets the root password. Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what if Linux forgets the root password"!

The solution after forgetting the root password or root password has been tampered with is as follows

Take Rhel6.6 as an example

Press e all the time to boot and enter

Continue to press e to enter

Select the second one and continue to press e to enter

Add single after quiet

Then press enter to return to the previous interface

(note: there is a difference between a virtual machine and a physical machine. If the physical machine cannot be accessed by adding single after quiet, replacing the single in the figure above with the number 1 can generally solve the problem.)

Press b to enter

At this point, it is already a single user root login, and you can do all the operations that root can do, including changing the root password.

At this point, I believe that everyone on the "Linux forgot the root password how to do" have a deeper understanding, might as well to actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Password how to do content physics learning practical deeper above picture interest practicality practical simple operation number scheme method more friends interface website solution Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Xiaomi NVidia Linux Shulou Tech Info