Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if linux forgot her password?

Shulou Source: shulou.com Published: 2022-05-31 15:09:34 09月21日 Update

This article mainly explains "what to do if linux forgets his password". Interested friends might as well take a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "what to do if linux forgets his password"!

Methods: 1, restart the linux system, press and hold the "enter" key to enter the editing interface; 2, press the "e" key to enter the editing mode, enter "single" at the end of the second line and press the "enter" key; 3, press the "b" key to start to enter the single-user mode; 4, use the "passwd" command to change the password.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

Linux forgot his password. How to solve it?

Examples are as follows:

Restart the linux system

Press enter within 3 seconds, and the following interface appears

Then enter e

Type single at the end of the second line with a space. The specific method is to press the downward tip to move to the second line, and press "e" to enter edit mode

Add single to the back and enter.

Finally, press "b" to start, and after startup, you enter single-user mode.

Now that you have entered single-user mode, you can change your root password. The command to change the password is passwd

At this point, I believe that everyone on the "linux forgot the password how to do" have a deeper understanding, might as well to the 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 mode how to do method system single user input content command interface learning practical deeper interest practicality practical pointy easy to operate tutorial time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Huawei Redmi Shulou Tech Info Shulou Information