第1步:修改lightdm.conf

vim /etc/lightdm/lightdm.conf

autologin-user=root
autologin-user-timeout=0


第2步:修改lightdm-autologin

vim /etc/pam.d/lightdm-autologin

# change:
auth   required pam_succeed_if.so user != root quiet_success
# to:
# auth   required pam_succeed_if.so user != root quiet_success

Logo

更多推荐