ubuntu 忘记账号密码了怎么破解
<div id="article_content" class="article_content clearfix"><link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/kdoc_html_views-1a98987dfd.css">
<link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/ck_htmledit_views-6e43165c0a.css">
<div id="content_views" class="htmledit_views">
<p style="margin-left:0;"><span style="color:#333333;"><span style="background-color:#ffffff;"><strong>(1)首先Restart系统(右上角下拉后有个选项)</strong></span></span></p>
<p style="margin-left:0;"></p>
<p style="margin-left:0;"></p>
<p style="margin-left:0;"><span style="color:#333333;"><span style="background-color:#ffffff;"><strong>(2)长按Shift键,直到出现下面菜单。选择recovery mode,也就是恢复模式。</strong></span></span></p>
<p style="margin-left:0;"> </p>
<p style="margin-left:0;"></p>
<p style="margin-left:0;"><span style="color:#333333;"><span style="background-color:#ffffff;"><strong>(3)接下来会进入如下界面,选择Drop to root shell prompt ,也就是获取root权限。</strong></span></span></p>
<p style="margin-left:0;"></p>
<p style="margin-left:0;"></p>
<p style="margin-left:0;"><span style="color:#333333;"><span style="background-color:#ffffff;"><strong>(4)在下面的# 后面敲入 cat /etc/shadow 查看用户名(如果连用户名都忘记的话)</strong></span></span></p>
<p style="margin-left:0;"></p>
<p style="margin-left:0;"></p>
<p style="margin-left:0;"><span style="color:#333333;"><span style="background-color:#ffffff;"><strong>(5)敲入:passwd "yulongsheng" 之后再敲两次密码就可以了。</strong></span></span></p>
<p style="margin-left:0;"></p>
<p style="margin-left:0;"></p>
<p style="margin-left:0;"><span style="color:#333333;"><span style="background-color:#ffffff;"><strong>(6)重启系统。</strong></span></span></p>
<p style="margin-left:0;"><span style="color:#333333;"><span style="background-color:#ffffff;">OK,搞定。<br><br><span style="color:#ff0000;">其它网友补充:</span><br><br> 1、重新启动,按ESC键进入Boot Menu,选择recovery mode(一般是第二个选项)。 <br> 2、在#号提示符下用cat /etc/shadow,看看用户名。 <br> 3、</span></span><span style="color:#fe2c24;"><span style="background-color:#ffffff;"><strong>输入passwd “用户名”(引号要有的哦)。 指定系统里面的哪个用户名改密码</strong></span></span><br><span style="color:#333333;"><span style="background-color:#ffffff;">4、输入新的密码。 <br> 5、重新启动,用新密码登录。</span></span></p>
</div>
</div>
<div id="treeSkill"></div>
页:
[1]