Ubuntu桌面版允許root登錄

第一步:設置好root密碼,sudo  passwd root
第二步:vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
修改配置文件在最後加上:greeter-show-manual-login=true
第三步:重新啓動
第四步:修改/root/.profile,避免 錯誤提示爲:Error found when loading /root/.profile stdin: is not a tty 的提示
在/root/.profile中添加 tty -s && mesg n



ubuntu允許root遠程訪問
vim /etc/ssh/sshd_config文件,將PermitRootLogin 的值改爲yes即可


因爲爲root賬戶設置了密碼,所以還要更改PermitEmptyPasswords爲 no。然後:wq保存文件。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章