How to Enable Automatic Login in Ubuntu for Instant Desktop Access

If you are using an Ubuntu desktop computer at home in a secure private environment, typing your user account password every single time you power on or restart your PC can feel like an unnecessary interruption. While requiring a password on boot is essential for office laptops and shared family computers, single-user home workstations benefit significantly from booting directly into the desktop environment. Ubuntu includes a native Automatic Login feature that bypasses the login screen completely.

Security Considerations Before Enabling Automatic Login

Before activating automatic login, consider your machine’s physical operating environment:

  • Home Workstations: Perfectly safe for stationary desktop towers located inside a secure private residence.
  • Laptops & Commuting: Not recommended for portable laptops that travel outside the home, as anyone who steals the device gains immediate access to your personal files and browser sessions.
  • Sudo Administrative Tasks: Automatic login only bypasses the initial boot lock screen; you will still be prompted to enter your password whenever you install software, update packages, or run administrative sudo commands.

How to Enable Automatic Login via Ubuntu Settings

The standard GNOME desktop environment in Ubuntu makes toggling automatic login easy through the Users management panel:

  1. Click the Quick Settings menu in the top-right corner of the Ubuntu desktop (the network and volume area) and click the Settings gear icon.
  2. In the left sidebar of the Settings window, scroll down and click on System (or Users directly in older Ubuntu releases).
  3. Click on Users.
  4. Because modifying authentication settings requires root privileges, click the Unlock… button in the top-right corner of the window.
  5. Enter your user account password when prompted and click Authenticate.
  6. Locate the Automatic Login setting row.
  7. Toggle the switch to the ON position.
  8. Close the Settings window. The next time you reboot your PC, Ubuntu will glide directly into your desktop workspace without stopping at the GDM login manager.

Managing the GNOME Keyring Password Prompt

When you enable automatic login, you might occasionally encounter a dialogue prompt upon opening Google Chrome or Microsoft Edge asking to “Unlock Keyring”. This occurs because Ubuntu encrypts saved website passwords using your login credentials:

  • If you want completely seamless bootups without entering a keyring password, open Passwords and Keys (Seahorse), right-click the Login keyring, select Change Password, enter your current password, and leave the new password fields completely blank.
  • Caution: Setting a blank keyring password stores your saved browser credentials in unencrypted plaintext on disk, so only do this on secure home computers.

How to Enable Automatic Login via GDM3 Configuration (CLI)

For headless systems or remote server setups, you can configure automatic login directly in the display manager configuration file:

sudo nano /etc/gdm3/custom.conf

Locate the [daemon] section and uncomment or add the following lines with your exact username:

AutomaticLoginEnable = true
AutomaticLogin = your_username

Press Ctrl + O to save and Ctrl + X to exit.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.