如何在ubuntu服务器上恢复root密码

Moh*_*mba 13 server root password-recovery

我在 Ubuntu 服务器上丢失了我的 root/超级用户密码。我尝试以恢复模式启动并选择 option drop to root shell

但它总是要求:

Give root password for maintenance (or type Control-D to continue)
Run Code Online (Sandbox Code Playgroud)

我不记得了。

小智 6

当 Control-D 提示您输入 root 密码时,请尝试它。如果这不起作用,请尝试以下操作:

http://www.howtogeek.com/howto/linux/reset-your-forgotten-ubuntu-password-in-2-minutes-or-less/

然后向下滚动到“备用根外壳方法”。