How to Enable Gui Root Login in Debian 10

In this post I am going to explain how to enable GUI root access on Debian 10. It is very similar to enabling Gui Root Login in Debian 8 and to enabling Gui Root Login in Debian 9. At this point I should warn you that using the root account is dangerous as you can ruin your whole system.  Try to follow this guide exactly.

1. First open a terminal and type su then your root password that you created when installing your Debian 10.

2. Install Leafpad text editor which allows you to edit text files. Type: “apt-get install leafpad”

3. Stay in root terminal and type “leafpad /etc/gdm3/daemon.conf”. This command opens the file “daemon.conf” in leafpad. Under security type “AllowRoot=true”. So your security section in the file should look like this:

[security]
AllowRoot=true

Once it looks like this save the file then exit the window.

4. Stay in root terminal and type “leafpad /etc/pam.d/gdm-password”. This command opens the file “gdm-password” in leafpad. Within this file you have comment out the line containing “auth required pam_succeed_if.so user != root quiet_success” so that it looks like this
#auth required pam_succeed_if.so user != root quiet_successSave the file and exit.

5. Now you should be able to login as root in you GUI Debian 9.

6 thoughts on “How to Enable Gui Root Login in Debian 10”

  1. hello,

    after a fresh install of debian 10 (buster) with KDE plasma today (2019-07-31) step 3 does not work:

    a) file /etc/gdm3/daemon.conf does not exist and
    b) there is no text file below /etc containing something like “AllowRoot”.

    what can i do?

    best regards

    server4fun

    1. maybe important: the fresh install was done without adding a normal user during initial debian setup.

      reason: the host shall be operated as an LDAP client.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.