VPSie home

How to Enable GUI Root Login in Debian

January 24, 2022

How to Enable GUI Root Login in Debian

 

 

The purpose of this article is to solve the problem that occurs when logging into Debian desktop. There is a simple task we need to do in the terminal to fix this. In this post, I’ll show you how to enable root access through the GUI on Debian 10. Just follow these instructions carefully to gain root access. OK, let’s begin.

 

 

 

First, Open a terminal and edit the daemon.conf file in the /etc/gdm3/ directory. You can edit the file by running the following command:

 

# sudo vim /etc/gdm3/daemon.conf

 

 

Then edit the file: Go to Security and enter “AllowRoot=true”. You should have a security section in the file that looks like this:

 

[Security]
AllowRoot=true

 

 

Save the file once this is the appearance, then exit the window. 

 

 

The next step involves editing the file ‘gdm-password‘ in the ‘/etc/pam.d/‘ directory. Run the following command to edit the file.

 

# sudo vim /etc/pam.d/gdm-password

  

There is a line in this file, which you have commented out.

 

 

Here’s how the line will look now.

 

 

auth required pam_succeed_if.so user != root quiet_success

 

Comment out this line by adding a # symbol. The format should look like this.

 

 

 

We have completed the process. Your GUI Debian should now allow you to log in as root. Thanks for reading! I hope it was informative for you! 

 

 

 

 

Launch a cloud server in minutes.

Create account