ubuntu忘记root密码解决方案
2018-09-12 本文已影响0人
天生小包
1 进入Recovery Mode
1、开机按住Shift键。
2、选择“Advanced Options for Ubuntu”。
3、选择 “Recovery Mode” 恢复模式。

2 选择 root

3 依次执行如下命令
$ ls /home # 系统中的用户
$ mount -o rw,remount /
$ passwd root #修改密码
修改完成后 输入 exit 退出,选择 resume 重启。