天天看点

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啦。