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”

原文地址:https://www.cnblogs.com/zhang-ke/p/5639256.html