Configuring Automatic Login and Lock Screen on Ubuntu 19.10

Ubuntu gives you an option to automatically login bypassing the login screen and also the lock screen. This beginner's guide walks you through the process.

Whether it’s Linux or Windows, Ubuntu, or Fedora, I am not an ‘automatic’ type of guy.  That is to say, and I don’t want my login automated, nor do I want my updates automatically installed.  This preference directly results from over thirty years in Information Technology, prudence, habit, and experience.  Plus, it’s just plain smart security sense.

However, I further realize that as Linux users get younger and younger, I am increasingly in the minority in this sense.  While I strongly disagree with automatic logins and updates, I can understand the desire for it.

So, with that understanding, let’s go about the business of instituting automated logins in Ubuntu.  We will also take the time to address the Ubuntu Lock Screen setting.  Configuring automatic Ubuntu software updates is much more in-depth.  We will discuss this in a separate dedicated article at a later date.

Change Ubuntu Login Settings

Ubuntu 19.10 Login Screen
Ubuntu 19.10 Login Screen

To change your login settings in Ubuntu, login to Ubuntu as usual.

Open the Activities overview by selecting Show Applications.
Show Applications

Open the Activities overview by selecting the Show Applications icon in the lower-left-hand corner of your screen.

Access the Settings | Users option by typing Users.
Access the Settings

Access the Settings | Users option by typing Users in the Search box.

Click Users (Add or remove users and change your password) to open the Users panel.

Click the Unlock button.
Click the Unlock button.

In the upper-right-hand corner of the Users panel, click the Unlock button. Enter your password when prompted. Click Authenticate.

Change/toggle the Automatic Login Switch to On (green).
Users

Change/toggle the Automatic Login Switch to On (green).  Close the window to save and exit.

Alternative-Method-for-accessing-account-settings
Account Settings

Alternatively, we could have accessed the Users panel via the System Menu in the upper-right-hand corner and select <username> and Account Settings.

We could have also enabled automatic logins from the terminal by editing the etc/gdm3/custom.conf:

# sudo vi /etc/gdm3/custom.conf

uncommenting the following lines:

# AutomaticLoginEnable = true
# AutomaticLogin = user1

and changing to (substitute the actual username for mtravisrose in the example):

AutomaticLoginEnable=True
AutomaticLogin=<username>

You can also enable Automatic Logins via the terminal.
Automatic Login

Save and exit the /etc/gdm3/custom.conf file via <Esc>!wq<Enter>.

Note: While I am a massive proponent of Linux users doing everything that they can through the CLI when possible, changing settings is the one exception.  Particularly amongst new users.  Typos are all too common when editing config files, and usually not worth risking a mistake.

Your account will now automatically log in when Ubuntu starts.

Change Ubuntu Lock Screen Setting

While I am incredibly security-conscience as it relates to computing, I must admit I hate the 10-minute default Screen Lock that Ubuntu imposes on its users.  That usually is one of the first things that I change when installing a new system.

Disabling or changing your Ubuntu 19.10 Screen Lock is simple.

Login to Ubuntu as usual.

Open the Activities overview via Show Applications.
Open the Activities overview via Show Applications.

Open the Activities overview by selecting the Show Applications icon in the lower-left-hand corner of your screen.

Access the Settings | Privacy option by typing Privacy.
Access the Settings | Privacy option by typing Privacy.

Access the Settings | Privacy option by typing Privacy in the Search box.

Click Privacy (Protect your personal information and control what others might see) to open the Privacy panel.

Toggle Automatic Screen Lock Off.
Toggle Automatic Screen Lock Off.

At the Privacy panel, select Screen Lock.  Toggle Automatic Screen Lock to the Off position at the Screen Lock window.  Close the Screen Lock window and the Privacy panel, respectively, to save your settings.

Note that we could have also changed the Lock screen after blank for the option to increase Ubuntu’s default 10 minute Screen Lock if we so desired.

Alternatively, we can disable Ubuntu 19.10’s System Lock via the Terminal.

# gsettings set org.gnome.desktop.screensaver lock-enabled false

gsettings set org.gnome.desktop.screensaver lock-enabled false
gsettings set org.gnome.desktop.screensaver lock-enabled false

We can also check to see if Screen Lock is enabled via the CLI.

# gsettings get org.gnome.desktop.screensaver lock-enabled false

Lock the Screen any time by pressing <WinKey> L at anytime.
Lock the Screen by pressing L at any time

Although I don’t have Screen Lock automatically enabled, I still can lock the Screen any time by pressing <WinKey> L.

I still do when I walk away from my system, whether at work or home alone.  Old habits die hard!

Conclusion

I cannot reiterate enough how ingrained my sense of security is dealing with anything information technology-related.  So much so that even writing this article felt foreign to me and seems somehow ‘wrong.’

However, times have changed.  If your system is physically secure and only you and your loved ones have access to it, there’s no reason that you cannot forego Lock Screen as well as enjoy the automatic login option that Ubuntu 19.10 affords you.  We hope that our article was useful in that endeavor.

Travis Rose
Hi, I'm M Travis Rose, a contributor to FOSS Linux. I have over thirty years of experience in the IT arena, at least fifteen of which has been working with Linux. I enjoy converting existing Windows users to the wonderful world of Linux. I guess you could call me a Linux-evangelist. Long live Linux!

4 COMMENTS

    • Thanks, Stan. I appreciate it and am glad it helped. As a newbie, if you ideas or requests for other article types, please advise and we will try to accommodate.

      As always, thanks for reading FOSS Linux,

      Travis

  1. Hi, Norman,

    That’s odd. Is there any additional information that you can provide? Also, can you verify you’re running 19.10, please?

    As always, thanks for reading FOSS Linux,

    Travis

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,271FansLike
385FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

MUST READ

Buyers who wish to go for a machine that is based on Linux often show interest in Chromebooks due to the form factor and extended battery life capabilities. Although ChromeOS power these machines, users can still miss out on a more genuine Linux experience. For those who happen to agree, the new Lemur Pro by System76 might get some heads turning.
Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.

5 Best Video Players for Linux

Most Linux-based systems come with a built-in video player, but let's be honest, it most definitely won't be able to satisfy all of your requirements, due to the fact that default software is mostly made for basic purposes. In this article, we will review the 5 Best Video Players for Linux and thoroughly discuss their features as well as their pros and cons.

All about Ubuntu editions and which version should you use?

Ubuntu is one of the most popular Linux distributions developed and released by Canonical, and not without reason. It has very enriched repositories, with support for all the programs you could ever need.

The 10 Best Linux Server Distros For Home And Businesses

By the year 2020, it is estimated that there are close to 600 Linux distributions in the market. It includes both servers and Desktop versions; therefore, if you are looking for lightweight Linux distribution for your old PC or a reliable desktop version for employees in your organization, you may be overwhelmed with the number of choices for finding one for your use.

The 10 Best Linux Games [2020 Edition]

Not too long ago, people had to use Wine or run virtual machines like VMware to play Windows Games on their Linux PCs. Not only was this inefficient, but it also consumed a lot of extra resources and resulted in a sub-optimal gaming experience. But standing in 2020, gaming on Linux is like a long-time dream come true.