Set Login With Root To Work With GUI

Posted November 16, 2021 99 views
Ubuntu 20.04DigitalOcean Droplets

I am setting up GUI and need to login to root. I use XFCE (is that GDM?).

Here is all the files I have that would configure this.

atd             common-password                gdm-fingerprint         lightdm-greeter  ppp        sudo
chfn            common-session                 gdm-launch-environment  login            runuser    systemd-user
chpasswd        common-session-noninteractive  gdm-password            newusers         runuser-l  vmtoolsd
chsh            cron                           gnome-screensaver       other            sshd
common-account  cups                           lightdm                 passwd           su
common-auth     gdm-autologin                  lightdm-autologin       polkit-1         su-l

What file should I edit to allow root login?
Thank you!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hey there!

Typically most GUI’s don’t recommend login via root by default and some disable it. The easiest option is to create another user with sudo privileges through SSH. You could then login as that user through the GUI and use sudo where needed. You can also become root while logged in as another user using the su command.

Hope it helps!