Home > Operation and Maintenance > Linux Operation and Maintenance > Solution to forget root password in linux

Solution to forget root password in linux

藏色散人
Release: 2019-06-06 09:21:26
Original
5093 people have browsed it

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 related video tutorials: "Linux Tutorial"

Solution to forget root password in linux

##The steps are as follows:

Restart the linux system

Press Enter within 3 seconds, the following interface will appear

##Then enter e

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, press "e" to enter the editing mode

and add single at the end and press Enter

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

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

Then you can successfully change the password! Hope this helps!

The above is the detailed content of Solution to forget root password in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template