ubuntu 14.04 LTS root用户登录

1.设置root密码

sudo passwd root

 

2.vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf 文件

[SeatDefaults]
user-session=ubuntu
greeter-show-manual-login=true

 

3.vim /root/.profile

打开文件后找到“mesg n”,
将其更改为“tty -s && mesg n”。

# mesg n
tty -s && mesg n

 

posted @ 2016-03-15 15:10  Lthis  阅读(318)  评论(0编辑  收藏  举报