The solution to forget the root password of linux ubuntu system

ubuntu forget the password, the solution to forget the root password

Power on, select advanced options and press enter to enter the menu options.
Insert picture description here
Select the recovery mode line and press e to edit it.
Insert picture description here

Find the key line, change the parameters, and change ro recovery nomodeset to rw single init=/bin/bash
before
Insert picture description here
modification after modification. After
Insert picture description here
entering the interface, enter the passwd username and change the password. After the modification, restart it.
Insert picture description here
Modified! Leave your footprints, like it.
Insert picture description here
The following is the reference link https://www.cnblogs.com/relaxgirl/p/3179507.html

Guess you like

Origin blog.csdn.net/qq_43261733/article/details/109714369