開啟root賬戶自動(dòng)登陸
PS:編輯命令輸入i
編輯,按Esc
退出輸入:wq!
保存
1、輸入下方命令對95-ukui-greeter.conf進(jìn)行編輯
sudo vim /usr/share/lightdm/lightdm.conf.d/95-ukui-greeter.conf
在文末添加下方2行
greeter-show-manual-login=true
all-guest=false
2、輸入下方命令對.profile進(jìn)行編輯
sudo vim /root/.profile
打開文件如下的文件內(nèi)容為:
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n 2> /dev/null || true
修改最后一行改為下方內(nèi)容
tty -s && mesg n || true
3、輸入下方命令對lightdm.conf 文件編輯修改登錄選項(xiàng)
sudo vim /etc/lightdm/lightdm.conf
修改后如下
開啟root用戶SSH遠(yuǎn)程登錄
1、輸入下方命令進(jìn)入root權(quán)限先編輯
sudo -i
2、輸入下方命令修改SSH配置文件
vim /etc/ssh/sshd_config
3、找到或添加以下內(nèi)容:
PermitRootLogin yes
PubkeyAuthentication yes
PasswordAutherntication yes
4、修改完配置輸入下方命令重啟ssh服務(wù)文章來源:http://www.zghlxwxcb.cn/news/detail-795991.html
systemctl daemon-reload
systemctl restart sshd
5、建議啟動(dòng)之后輸入下面命令設(shè)置密碼文章來源地址http://www.zghlxwxcb.cn/news/detail-795991.html
passwd root
到了這里,關(guān)于麒麟系統(tǒng)開啟root賬戶自動(dòng)登陸及開啟root用戶SSH遠(yuǎn)程登錄的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!