Enable Root Login in GUI Lock Screen in Ubuntu.

Enable Root Login in GUI Lock Screen in Ubuntu.

How to Enable Root Login in Ubuntu in Login Screen.

Do you have Trouble to Login as root user in Ubuntu like this?


Steps to Enable Root Login

  1. Login as other user as you Define in Installation time.
  2. Open the Terminal, shortcut to open Terminal ctrl+atl+t.
  3. Use Following commands.


sudo su -
  1. Provide the credentials.
vim /etc/gdm3/custom.conf
  1. Add a new line-> Allowroot=True
  2. Press i for edit.
  3. Press "esc" then type ":wq".  (ecp->exit from Edit mode, w->Save, q-> Exit)


vim /etc/pam.d/gdm-password
  1. comment second line ( use hash "#" before line).
  2. Press i for edit.
  3. Press "esc" then type ":wq".  (ecp->exit from Edit mode, w->Save, q-> Exit)


passwd root
  1. Set new password for root.
  2. Go to the Login Screen and Login as root user, now you must be login as root.


    • Related Articles

    • Configuration to Enable ssh(Remote) Login in Ubuntu.

      How to Enable ssh (Remote) Login in Ubuntu. Have a Trouble to Access ssh Login in Ubuntu. Steps to Configure ssh configuration file. Go to your system/VM and Open Terminal (use ctl+atl+t) and Follow Commands. Open sshd_config file in any editor like ...
    • Setup noVNC on Ubuntu 20.04/Gnome 3.36

      VNC (Virtual Network Computing) enables you to control your Linux installation from another computer on the same network, by viewing and interacting with the desktop from the other computer. To learn more about VNC, click here noVNC allows you to ...
    • What is Boot Process in Linux OS.

      Boot Process in Linux OS. Have you ever wondered what happens behind the scenes from the time you press the power button until the Linux login prompt appears? Press the power button on your system, and after few moments you see the Linux login ...
    • Backup, Snapshot, and Restore Linux installations using Timeshift

      If you mess up (or are going to mess up) some config files or drivers, it is always good to have a fallback point. The de-facto standard for doing this on Linux is Timeshift. Timeshift for Linux is an application that provides functionality similar ...
    • How to Partition, Format, and Mount Secondary Drives in Linux - Manual Drive Configuration (MDC)

      Introduction This guide provides detailed instructions on how to manually configure secondary drives in a Linux system, including partitioning, formatting, and mounting the drives. Warning Performing these steps on an existing primary drive or a ...