MDGSF Software Engineer

[Linux] root用户自动登录

2018-05-19

1.设置 root 用户密码

sudo passwd root

2. /etc/lightdm/lightdm.conf

[Seat:*]
autologin-guest=false
autologin-user=root
autologin-uesr-timeout=0
greeter-session=lightdm-gtk-greeter

3. /root/.profile

mesg n || true

改为

tty -s && mesg n || true

重启电脑


weixingongzhonghao

Similar Posts

Comments