ubuntu14.04设置默认登录用户为root

来源:互联网 发布:网络会议软件 编辑:程序博客网 时间:2024/04/28 02:00

1.使用命令打开配置文件,命令如下:

sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

2.修改配置文件,添加如下内容

[SeatDefaults]autologin-user=rootuser-session=ubuntugreeter-show-manual-login=true

50-ubuntu.conf

3.修改profile文件

#前提是root权限gedit /root/.profile

.profile
添加 tty -s &&

0 0