ubuntu设置root用户登录图形界面

1、 sudo passwd root

切换到root用户执行以下命令

sed -i 's/^auth required pam_succeed_if.so user != root quiet_success/#auth requied pam_succeed_if.so user != root quiet success/' /etc/pam.d/gdm-autologin

sed -i 's/^auth requied pam_succeed_if.so user != root quiet success/#auth requied pam_succeed_if.so user != root quiet success/' /etc/pam.d/gdm-password

sed -i 's/^mesg n || true/#tty -s && mesg n || true/' /root/.profile

你可能感兴趣的:(ubuntu设置root用户登录图形界面)