website: https://linuxconfig.org/how-to-allow-gui-root-login-on-ubuntu-20-04-focal-fossa-linux
In this article you will find out how to allow the root user to login to GUI gnome Desktop on Ubuntu 20.04 Focal Fossa.
In this tutorial you will learn:
- How to set root password
- How to configure GDM to allow root gui login
- How to configure PAM to allow root gui login
Allow GUI root login on Ubuntu 20.04 Focal Fossa Linux Desktop
Software Requirements and Conventions Used
Category | Requirements, Conventions or Software Version Used |
---|---|
System | Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa |
Software | N/A |
Other | Privileged access to your Linux system as root or via the sudo command. |
Conventions | # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command$ – requires given linux commands to be executed as a regular non-privileged user |
Allow GUI root login on Ubuntu 20.04 step by step instructions
- First step is to set root password:
$ sudo passwd
The above command will set a root password which will be later user to login to GUI.
- Next, step is to edit the
/etc/gdm3/custom.conf
GDM configuration file to allow root login.use your favourite text editor and as a root user edit the
/etc/gdm3/custom.conf
file to add theAllowRoot=true
line. - Next, edit PAM authentication daemon configuration file
/etc/pam.d/gdm-password
and comment line which denies root access to graphical user interface.To do so edit file
/etc/pam.d/gdm-password
and put#
in front of the line containing:auth required pam_succeed_if.so user != root quiet_success
Comment line which denies root’s access to graphical user interface
- All done. Reboot your Ubuntu system.
Upon a new login select
Not listed?
and enter root’s credentials.
Related Linux Tutorials:
- Things to do after installing Ubuntu 20.04 Focal Fossa Linux
- Things to install on Ubuntu 20.04
- Top 10 Best Gnome extensions for Ubuntu 20.04 Desktop
- Manjaro Linux GNOME installation
- Ubuntu 20.04 Tricks and Things you Might not Know
- The 8 Best Ubuntu Desktop Environments (20.04 Focal…
- How to install Gnome Shell Extensions on Ubuntu…
- How to reset password on AlmaLinux
- Install Gnome Shell Extensions from ZIP file using…
- How to install Gnome Desktop on Manjaro 18 Linux
Categories Ubuntu Tags administration, beginner, desktop, ubuntu, ubuntu 20.04
Post navigation