Linux Ubuntu 忘记密码时重置密码

 

一,重启系统并长按shift,进入GNU GRUR后选中“Ubuntu 高级选项”,回车

Linux Ubuntu 忘记密码时重置密码_第1张图片

二、选中带有“recovery mode”,按“e”,进行编辑

Linux Ubuntu 忘记密码时重置密码_第2张图片

三、找到并将“recovery nomodeset” 改成 

quiet splash rw init=/bin/bash

Linux Ubuntu 忘记密码时重置密码_第3张图片

Linux Ubuntu 忘记密码时重置密码_第4张图片

四、按F10或Ctrl+x后出现界面,输入password + 用户名,然后可以输入新的密码

Linux Ubuntu 忘记密码时重置密码_第5张图片

出现successfully后重启系统,成功进入

Linux Ubuntu 忘记密码时重置密码_第6张图片

 

参考:https://blog.csdn.net/weixin_37909391/article/details/80691601

     https://www.2cto.com/kf/201805/750208.html

 

 

 

 

你可能感兴趣的:(Linux)