天天看點

Ubuntu重置root 密碼

開機的時候按esc調出grub菜單。進入進階模式。

Ubuntu重置root 密碼

選中恢複模式(recover mode)後按‘e’鍵。

Ubuntu重置root 密碼

把ro recovery nomodeset 改成rw single init=/bin/bash   

Ubuntu重置root 密碼

然後按ctrl+x 進入單使用者模式。

然後重置root密碼,指令為 passwd root。

重新開機,就ok啦。