快乐的搬运工 發表於 2019-11-16 18:44:00

设置Fedora能够使用root用户登录

<p>1. 切换到root工作环境,因为一下操作必须拥有root权限</p>
<p>$ su root<br>密码:</p>
<p>2. 编辑/etc/pam.d/gdm</p>
<p># vi /etc/pam.d/gdm</p>
<p>注释掉下面这行</p>
<p>&nbsp;auth &nbsp; &nbsp; &nbsp; required &nbsp; &nbsp;pam_succeed_if.so user != root quiet &nbsp;</p>
<p>保存退出</p>
<p>3. 编辑/etc/pam.d/gdm-password</p>
<p># vi /etc/pam.d/gdm-password</p>
<p>注释掉下面这行</p>
<p>auth &nbsp; &nbsp; &nbsp; &nbsp;required &nbsp; &nbsp; &nbsp;pam_succeed_if.so user != root quiet</p>
<p>保存退出</p>
<p>4. &nbsp;重启即可用root用户登录</p><br><br>
来源:https://www.cnblogs.com/Kconnie/p/11872891.html
頁: [1]
查看完整版本: 设置Fedora能够使用root用户登录