By default, Debian does not allow root logon.
(1) Allow Debian to log on as root
1) First, modify the gdm3 configuration file (/etc/gdm3/deamon. conf) and append the following line to the [Security] field:
Allowroot
= Ture
2) modify the logon Pam file of gdm3.
# Vi/etc/PAM. d/gdm3
Set auth required pam_succeed_if.so user! = Root quiet_success comment out // Add this row before #
(2) Enable Debian to log on automatically as the root user.
1) First, modify the gdm3 configuration file (/etc/gdm3/deamon. conf) and append the following two lines to the [daemon] field:
Automaticlogin = false // change to true
Automaticlogin = root // automatically log on as the root user
If you want to wait a few seconds to log on again, you can append the following content to the [daemon] field:
Timedloginenable = true
Timedlogin = root
Timedlogindelay = 5 // login with a latency of 5 seconds, which can be modified
2) modify the automatic logon Pam file of gdm3.
# Vi/etc/PAM. d/gdm3-autologin
Set auth required pam_succeed_if.so user! = Root quiet_success comment out. // Add # in front of the bank to cancel the restriction that Debian will not allow root login.
Restart.