admin 发表于 2023-2-16 18:55:12

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>&#xff08;1&#xff09;首先Restart系统&#xff08;右上角下拉后有个选项&#xff09;</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>&#xff08;2&#xff09;长按Shift键&#xff0c;直到出现下面菜单。选择recovery mode&#xff0c;也就是恢复模式。</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>&#xff08;3&#xff09;接下来会进入如下界面&#xff0c;选择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>&#xff08;4&#xff09;在下面的# 后面敲入 cat /etc/shadow 查看用户名&#xff08;如果连用户名都忘记的话&#xff09;</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>&#xff08;5&#xff09;敲入&#xff1a;passwd &#34;yulongsheng&#34; 之后再敲两次密码就可以了。</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>&#xff08;6&#xff09;重启系统。</strong></span></span></p>
<p style="margin-left:0;"><span style="color:#333333;"><span style="background-color:#ffffff;">OK&#xff0c;搞定。<br><br><span style="color:#ff0000;">其它网友补充&#xff1a;</span><br><br> 1、重新启动&#xff0c;按ESC键进入Boot Menu&#xff0c;选择recovery mode&#xff08;一般是第二个选项&#xff09;。 <br> 2、在#号提示符下用cat /etc/shadow&#xff0c;看看用户名。 <br> 3、</span></span><span style="color:#fe2c24;"><span style="background-color:#ffffff;"><strong>输入passwd “用户名”&#xff08;引号要有的哦&#xff09;。 指定系统里面的哪个用户名改密码</strong></span></span><br><span style="color:#333333;"><span style="background-color:#ffffff;">4、输入新的密码。 <br> 5、重新启动&#xff0c;用新密码登录。</span></span></p>
                </div>
      </div>
      <div id="treeSkill"></div>
页: [1]
查看完整版本: ubuntu 忘记账号密码了怎么破解