How to Enable Automatic Login on Ubuntu 20.04?

For Ubuntu’s latest versions, users can enable automatic login for the ease of users. If enabled, then users do not need to type the password whenever they try logging in. If you are the only user of your system, then it is a very useful method for easy access to relevant files.

In this article, we will analyze the methods of enabling the automatic login on the Ubuntu 20.04 system.

Method 01: Enabling Automatic Login Using GUI

To enable the automatic login using the graphical user interface, go to the Applications of the system. Then, search Settings in the search bar, it will appear in the available options. Click on it.

How to Enable Automatic Login on Ubuntu 20.04? 1

Once the Settings modal is opened, scroll down to the Users option available in the sidebar.

How to Enable Automatic Login on Ubuntu 20.04? 2

Once you have clicked on the Users option, you will see the right pane. The toggle button is right next to the Automatic Login option. It has to be turned on to enable the automatic login.

How to Enable Automatic Login on Ubuntu 20.04? 3

If you see an Unlock to Change Settings option on the same pane, this means that the change settings option is locked.

How to Enable Automatic Login on Ubuntu 20.04? 4

To unlock it, click on the Unlock button first.

How to Enable Automatic Login on Ubuntu 20.04? 5

The system will ask for Authentication. Provide the password in the relevant field to unlock the change settings.

How to Enable Automatic Login on Ubuntu 20.04? 6

Once the Authentication is completed, you will see that the Automatic Login option is now enabled, and the toggle button is set to ON.

How to Enable Automatic Login on Ubuntu 20.04? 7

Method 02: Enabling Automatic Login Using the Command line

To enable the automatic login using the command line of the system, open up the terminal window using the Ctl+Alt+T shortcut. Alternatively, you can go to the Applications and then search Terminal. Once done, you need to edit the /etc/gdm3/custom.conf file using the appended command below:

$ cd /etc/gdm3

How to Enable Automatic Login on Ubuntu 20.04? 8

Then access the custom.conf using the nano editor (or any other based on your choice). Use the following command below:

$ sudo nano custom.conf

How to Enable Automatic Login on Ubuntu 20.04? 9

The custom.conf file will open up, and you need to access the highlighted section of the file. By default, the following part of the code is commented out, just like the ones shown below:

#AutomaticLoginEnable=True
#AutomaticLogin = userName

How to Enable Automatic Login on Ubuntu 20.04? 10

You need to uncomment these lines just like the one displayed below:

How to Enable Automatic Login on Ubuntu 20.04? 11

Use the Ctl+O shortcut to save and close the editor. Once done, use the reboot option to reboot the system and reflect the changes.

$ sudo reboot

How to Enable Automatic Login on Ubuntu 20.04? 12

Automatic Login Enable Option not working?

For Ubuntu 20.04 system, if NVIDIA proprietary driver is installed, then this option of enabling user automatic log in can result in an infinite login loop, which is a gdm3 bug. However, there’s no need to worry about this particular bug since a solution exists. In this section, we will cover the method to resolve this problem.

Open the bootable menu of the Ubuntu system. Then access the Recovery Menu of the system. Scroll down to the root option using the arrow keys from the keyboard.

How to Enable Automatic Login on Ubuntu 20.04? 13

To edit grub options, run the following command:

$ sudo nano /etc/default/grub

How to Enable Automatic Login on Ubuntu 20.04? 14

The text editor will open up the file, just like the one displayed below. Scroll down to the line that has the “quiet splash” option.

How to Enable Automatic Login on Ubuntu 20.04? 15

Users need to remove the “splash” keyword from the Linux cmdline. The file will then look like this:

How to Enable Automatic Login on Ubuntu 20.04? 16

Press Ctl+O to save the changes.

You need to refresh the grub options using the command below:

$ sudo update-grub

How to Enable Automatic Login on Ubuntu 20.04? 17

Then you need to reboot your computer system. This way your issue will be resolved.

Conclusion

In this article, we went through the method of enabling the Automatic Login Option on the Ubuntu 20.04 system. We also explored the method if the automatic login enables option is not working, how to troubleshoot this problem, and get it fixed.

Leave a Comment

Your email address will not be published. Required fields are marked *