【问题标题】:Forget ubuntu 18.04 root password [closed]忘记ubuntu 18.04 root密码[关闭]
【发布时间】:2021-01-01 21:03:27
【问题描述】:

我忘记了我的 ubuntu 18.04 虚拟机 (VM) 根密码。要重置此密码,我在重新启动机器时按“esc+enter”,然后选择高级选项以获取以下菜单:

Ubuntu, with Linux 4.15.0-34-generic
Ubuntu, with Linuc 4.15.0-34-generic (recovery mode)
Ubuntu, with Linux 4.15.0-34-generic
Ubuntu, with Linuc 4.15.0-34-generic (recovery mode)
Ubuntu, with Linux 4.15.0-34-generic
Ubuntu, with Linuc 4.15.0-34-generic (recovery mode)

同一组项目在我的虚拟机中出现了 3 次。我选择了恢复模式——>“root Drop to root shell prompt”。然后,我得到了:

Give root password for maintenance
(or press Control-D) to continue):

我尝试了 Ctrl+d 和 Crtl+shift+d (Ctrl+D),但它们都让我回到了包含以下内容的菜单:

root     Drop to root shell prompt

然后,这个过程循环。有谁知道问题出在哪里?

【问题讨论】:

标签: ubuntu passwords root reset


【解决方案1】: