Home  >  Article  >  Operation and Maintenance  >  What should I do if I forget my Linux password?

What should I do if I forget my Linux password?

(*-*)浩
(*-*)浩Original
2019-12-05 09:15:579146browse

What should I do if I forget my Linux password?

Many friends often forget the root password of the Linux system. What should I do if the Linux system forgets the root password? Reinstall the system? Of course not! Enter single-user mode and change the root password. (Recommended learning: linux tutorial)

The steps are as follows:

Restart the linux system

What should I do if I forget my Linux password?

Press Enter within 3 seconds and the following interface will appear

What should I do if I forget my Linux password?

Then enter e

What should I do if I forget my Linux password?

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

What should I do if I forget my Linux password?

Add single at the end and press Enter

What should I do if I forget my Linux password?

Finally press "b" to start. After startup, you will enter single-user mode

What should I do if I forget my Linux password?

You have now entered single-user mode, and you can change the root password. The command to change the password is passwd

What should I do if I forget my Linux password?

The above is the detailed content of What should I do if I forget my Linux password?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn