linux ubuntu14 更改為root用戶登錄


設置使用root用戶登陸
首先要修改root的登陸密碼sudo passwd root
1、輸入sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
2、在彈出的文本框中輸入
[SeatDefaults]
user-session=ubuntu
autologin-user=root
greeter-session=unity-greete
greeter-show-manual-login=true
allow-guest=false

Error found when loading /root/.profile
stdin:is not a tty
…………


ubuntu 14.04開機出現錯誤“Error found when loading /root/.profile”解決
解決方法:在終端中用命令sudo gedit /root/.profile,打開文件后找到“mesg n”,
將其更改為“tty -s && mesg n”


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM