Ubuntu forget super user root password, reset the password reprint

Original link: https: //blog.csdn.net/weixin_37909391/article/details/80691601

 

Ubuntu Version: Ubuntu 16.04.3 the LTS

. 1 starting system, during startup, repeatedly pressing the Esc key or shift key (I pro-test repeatedly press or long press can not necessary tangle), until the screen appears the following:

up and down keys to move , select advanced options Ubuntu (or some version shows the advanced options for Ubuntu), and then press the 'enter' button, enter the following interface

select Ubuntu, with Linux 4.13.0-38-generic ( recovery mode), as follows:

press' e 'key , as into the interface


by the arrow keys to move the cursor, to find the linux / boot / ....... ro recovery nomodeset line located below


the ro recovery nomodeset FIG changed quiet splash rw init = / bin / the bash , the following change End

press 'F10' key after a few seconds, into the interface as follows:


input the passwd command, the following


press "enter" key, the interface as follows:


after entering the password and press "enter" keyboard, press enter enter the password again, the interface is as follows


losers password twice, press the "enter" key, the interface is as follows:

Description password successfully

restart the computer (if it is a virtual machine, restart the virtual machine), enter the terminal, enter the command su - interface is as follows


just set the password input interface as


$ # becomes, say Superuser. If there is no prompt authentication failure or any other error messages, can also modify the password was successful.


Guess you like

Origin www.cnblogs.com/liujx2019/p/11758265.html