본문 바로가기
Linux/Ubuntu

[Ubuntu] 버전 별 root 계정 자동 로그인.

by 어발 2021. 1. 18.

1. Ubuntu 20.04 LTS

$ vi /etc/gdm3/custom.conf
< custom.conf >

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=root

[security]
AllowRoot=true

$ vi /etc/pam.d/gdm-password
< gdm-password >

#auth required pam_succeed_if.so user != root quiet_success

$ vi /etc/pam.d/gdm-autologin
< gdm-autologin >

#auth required pam_succeed_if.so user != root quiet_success

2. Ubuntu 18.04 LTS

$ vi /etc/gdm3/custom.conf
< custom.conf >

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=root

[security]
AllowRoot=true

$ vi /etc/pam.d/gdm-password
< gdm-password >

#auth required pam_succeed_if.so user != root quiet_success (line 3: 주석)

$ vi /etc/pam.d/gdm-autologin
< gdm-autologin >

#auth required pam_succeed_if.so user != root quiet_success (line 3: 주석)

$ vi ~/.profile
< .profile >

tty -s && mesg n || true (제일 하단에 삽입)

3. Ubuntu 16.04 LTS

$ vi /etc/lightdm/lightdm.conf
< lightdm.conf >

[Seat:*]
autologin-user=root

$ vi ~/.profile
< .profile >

tty -s && mesg n || true

728x90

댓글