新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Ubuntu配置單root用戶登錄具體方法
本篇文章中重點為大家講解一下Linux中配置Ubuntu 配置單root用戶登錄具體方法,有需要的小伙伴可以參考一下。

shell命令
sudo vim usr/share/lightdm.conf.d/50-ubuntu.conf //編輯器不限
[SeatDefaults]
user-session=ubuntu
greeter-show-manual-login=true #手工輸入登錄系統(tǒng)的賬號密碼
allow-guest=false #禁止guest登錄
修改root密碼
sudo passwd root
修改/root/.profile
sudo vim /root/.profile //root首次登錄會報錯解決方法
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
#mesg n 注釋掉mesg n 增加一行tty -s && mesg n
tty -s && mesg n
修改ssh配置文件允許root登錄
sudo vim /etc/ssh/sshd_config
#permitRootLogin without-password 注釋掉這行,新增下面一行
permitRootLogin yes
重啟ssh服務(wù)即可
當前文章:Ubuntu配置單root用戶登錄具體方法
當前路徑:http://fisionsoft.com.cn/article/cospgee.html


咨詢
建站咨詢
