我在Ubuntu服务器上丢失了根/超级用户密码。我尝试以恢复模式启动并选择选项drop to root shell。
但它总是被要求:
Give root password for maintenance (or type Control-D to continue)我也不记得了。
发布于 2013-12-24 14:39:16
当它提示您输入根密码时,请尝试Control。如果这不起作用,那就试试这个:
http://www.howtogeek.com/howto/linux/reset-your-forgotten-ubuntu-password-in-2-minutes-or-less/
然后向下滚动到“备用根Shell方法”。
发布于 2017-01-02 05:04:55
linux /boot/开头),并在行尾添加init="/bin/bash"。mount -rw -o remount /,然后输入passwd以更改根密码,然后重新启动。参考资料:https://www.vultr.com/docs/boot-into-single-user-mode-reset-root-password
发布于 2013-12-24 15:48:21
Ubuntu中没有根密码。这是一个安全特性:不可能以root身份登录,没有密码意味着没有密码可以破解。
在恢复模式下提示输入密码时,只需按输入即可。
https://askubuntu.com/questions/395196
复制相似问题