- 重新启动电脑,并按下Shift键,直到出现字符型启动菜单
- 选择recovery mode 启动。
- 接下为会进入对话框。选择
root Drop to root shell prompt
选择Drop to root shell prompt ,也就是获取root权限 - 进入命行行模式后,输入
1 | # cat /etc/shadow # 查看你的用户名, |
当然也不用查了,因为你应该记得你的用户名。
5. 更扆密码后重启系统
1 | # passwd 你的用户名 # |
root Drop to root shell prompt
选择Drop to root shell prompt ,也就是获取root权限
1 | # cat /etc/shadow # 查看你的用户名, |
当然也不用查了,因为你应该记得你的用户名。
5. 更扆密码后重启系统
1 | # passwd 你的用户名 # |