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.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-01.png" data-lazy- height="287" src="data:image/svg xml,” width=”974″>

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

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-02.png" data-lazy- height="668" src="data:image/svg xml,” width=”835″>

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.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-03.png" data-lazy- height="645" src="data:image/svg xml,” width=”841″>

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

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-04.png" data-lazy- height="645" src="data:image/svg xml,” width=”864″>

To unlock it, click on the Unlock button first.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-05.png" data-lazy- height="62" src="data:image/svg xml,” width=”974″>

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

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-06.png" data-lazy- height="564" src="data:image/svg xml,” width=”625″>

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

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-07.png" data-lazy- height="666" src="data:image/svg xml,” width=”858″>

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:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-08.png" data-lazy- height="29" src="data:image/svg xml,” width=”600″>

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

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-09.png" data-lazy- height="27" src="data:image/svg xml,” width=”837″>

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

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-10.png" data-lazy- height="716" src="data:image/svg xml,” width=”974″>

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

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-11.png" data-lazy- height="722" src="data:image/svg xml,” width=”974″>

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.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-12.png" data-lazy- height="29" src="data:image/svg xml,” width=”725″>

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.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-13.png" data-lazy- height="520" src="data:image/svg xml,” width=”974″>

To edit grub options, run the following command:

$ sudo nano /etc/default/grub

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-14.png" data-lazy- height="27" src="data:image/svg xml,” width=”812″>

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.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-15.png" data-lazy- height="522" src="data:image/svg xml,” width=”974″>

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

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-16.png" data-lazy- height="525" src="data:image/svg xml,” width=”974″>

Press Ctl O to save the changes.

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

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/enable-automatic-login-on-ubuntu-20.04-17.png" data-lazy- height="18" src="data:image/svg xml,” width=”685″>

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.

About the author

<img alt="Karim Buzdar" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/karim-150×150.png" height="112" src="data:image/svg xml,” width=”112″>

Karim Buzdar

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.