美文网首页
ubuntu忘记root密码解决方案

ubuntu忘记root密码解决方案

作者: 天生小包 | 来源:发表于2018-09-12 18:33 被阅读0次
    1 进入Recovery Mode

    1、开机按住Shift键。
    2、选择“Advanced Options for Ubuntu”。
    3、选择 “Recovery Mode” 恢复模式。

    image.png
    2 选择 root
    image.png
    3 依次执行如下命令
     $ ls /home      # 系统中的用户
     $ mount -o rw,remount /
     $ passwd root   #修改密码
    

    修改完成后 输入 exit 退出,选择 resume 重启。

    相关文章

      网友评论

          本文标题:ubuntu忘记root密码解决方案

          本文链接:https://www.haomeiwen.com/subject/atjbgftx.html