Linux forget the root password solution

Insert picture description here
Turn on the virtual machine, select the second one and press the e key. The
Insert picture description here
page is not modified.
Insert picture description here
Important: rochange rwand then type in the back and init=/bin/bashpress f10 and
Insert picture description here
press f10 to jump to this page, select the following enter.
Insert picture description here
Success: directly passwd to modify the password for the
first time input Password:
Determine the password for the second time:
Then restart, enter root and the password you set.
Insert picture description here

Guess you like

Origin blog.csdn.net/p_utao/article/details/113788753