8

How do we turn on root desktop login? I set the root password then modified /etc/gdm3/custom.conf

[Security]
AllowRoot=true

This is not giving me the option of the root at login screen, neither it accepts my root credentials. Credentials are correct.

Majoris
  • 207
  • 1
  • 3
  • 6

1 Answers1

12
  1. Set a root password (may be the same as user password) with sudo passwd root. You'll be asked to type the password twice in case of a typo.
  2. Unlock the root account with sudo passwd -u root.
  3. Edit sudo nano /etc/gdm3/custom.conf, and add the following line under [security]:
AllowRoot=true
  1. Edit sudo nano /etc/pam.d/gdm-password, and comment out the following line by adding a # in front of it, like this:
#auth   required    pam_succeed_if.so user != root quiet_success
  1. Reboot.
  2. Select "Not Listed" at the login screen, then type "root" in the username field, and your root password in the password field.
  3. Now you should be logged in as root in your GUI desktop.
Daniel M.
  • 2,046