Ubuntu 22 root桌面登录

1.
sudo nano /etc/pam.d/gdm-autologin
sudo nano /etc/pam.d/gdm-password

#auth required pam_succeed_if.so user != root quiet_success

2.
sudo nano /root/.profile
#mesg n 2> /dev/null || true
tty -s && mesg n || true

posted @ 2024-11-26 14:16  ahuo  阅读(15)  评论(0编辑  收藏  举报