重置Ubuntu开机密码

1.Ubuntu开机后,长按shift键进入grub菜单

2.选择recovery mode,enter

3.在recovery menu中选择root drop to root shell prompt,enter

4.​进入shell界面,使用passwd命令设定新密码: passwd “需要找回密码用户”

5.输入新密码,再次输入新密码,看到password updated successfully即为成功

6.如果出现了

authentication token manipulation error

passwd unchanged

的字样则进入step7,否则,进入step9

7.在命令行输入 "mount -o rw,remount /"

8.​step7获得了修改密码的权限之后再重复step4,step5 两步,就会看到successfully的提示。

9. sudo reboot 后重新启动了,输入新的密码即可登陆进要找的相应用户​了

posted @ 2016-04-06 19:53  喝维他柠檬茶的猪仔豪  阅读(735)  评论(0编辑  收藏  举报