1c7 / VideoList

:us: -> :cn: @糖醋陈皮 翻译的视频列表
https://weibo.com/2004104451
57 stars 11 forks source link

Ubuntu 忘记 root 密码 #67

Open 1c7 opened 8 years ago

1c7 commented 8 years ago

1. 重启的时候按住 Shift

image


2. 选中第二个选项

image 回车,再次选第二个(recovery mode) image


3. 选择 root

image

输入

mount -o rw,remount /   # 使得你有写的权限
ls /home  # 如果你把用户名都忘记了,就用这个看看有多少用户
passwd 用户名   # 修改指定用户的密码,比如你要修改 lucy 用户的密码,就用
passwd lucy  # 就行了
exit   # 退回到菜单

image



end. 参考资料

http://www.psychocats.net/ubuntu/resetpassword