Home > Article > Operation and Maintenance > Solution to forget root password in linux
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"
##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!