How to enable automatic login in LightDM

When you turn on the computer, after the operating system has finished booting, the screen where you have to enter the password to log in to the desktop will appear. If the computer is physically secured or if there is little chance that others will access your computer, you may want to enable automatic login so you can access the desktop faster.

TipsMake.com showed you how to enable automatic login in Ubuntu, but if you are using LightDM, here are the steps to enable autologin in LightDM.

How to activate autologin in LighDM

1. Open a terminal and enter:

 sudo nano /etc/lightdm/lightdm.conf 

2. Scroll down and find the lines:

 #autologin-guest=false #autologin-user=user #autologin-user-timeout=0 

3. Uncomment the lines by deleting # in front of each line. Change the autologin-user field to your username, as follows:

 autologin-guest=false autologin-user=damien autologin-user-timeout=0 

4. Save the file by pressing Ctrl + O and exit (using the keyboard shortcut Ctrl + X ).

Restart the computer and it will automatically log into the desktop.

Additional installation for different Linux versions

Linux Mint

Linux Mint's Desktop Cinnamon by default is using LightDM, but it does not come with lightdm.conf file. Follow these steps:

1. Open file:

 sudo nano /etc/lightdm/lightdm.conf.d/70-linuxmint.conf 

2. Add the following lines, change 'damien' to your own username:

 autologin-guest=false autologin-user=damien autologin-user-timeout=0 

Save and exit the file. Restart the computer for the feature to take effect.

Arch Linux

If you are using Arch Linux, you must add users to the autologin group before you can use this feature:

 sudo groupadd -r autologin sudo gpasswd -a username autologin 

Then, follow the steps above to activate the autologin lines in lightdm.conf file.

It's easy to enable automatic login for LightDM, as long as you feel safe doing so.

Hope you are succesful.

4 ★ | 88 Vote

May be interested

  • How to turn off automatic Google login on ChromeHow to turn off automatic Google login on Chrome
    on chrome 70, there is a feature that automatically blocks login to google accounts like gmail, youtube ... on chrome.
  • How to Enable Automatic UpdatesHow to Enable Automatic Updates
    updates to pc windows operating systems can make your computer more secure and stable, enabling your computer to run more smoothly. in just a few minutes you can learn how to enable automatic updates with the windows 7, windows vista or...
  • How to know your Facebook has been hackedHow to know your Facebook has been hacked
    the hackers have a lot of ways to hack into facebook accounts. automatic login facebook allows hackers to access login accounts of other users' websites thanks to their facebook access
  • How to enable automatic backup of Registry on Windows 10How to enable automatic backup of Registry on Windows 10
    how to automatically back up registry on windows 10? the trick to enable automatic backup of registry on windows 10 is simple and effective
  • How to Login to Netgear RouterHow to Login to Netgear Router
    logging into your netgear router will allow you to change the router's default username and password, customize network settings, security layer strength, and enable features like parental controls. the default login information for all netgear brand routers is the same.
  • How to login Windows 10 by fingerprintHow to login Windows 10 by fingerprint
    the network administrator will show you how to enable and configure the windows hello fingerprint feature to log on to a windows 10 computer with fingerprints with a slight touch.
  • Customize the login screen background on Windows 7Customize the login screen background on Windows 7
    windows 7 allows you to change the login screen background - which appears when you start your computer - without any third-party software, but this setting is hidden. this article will guide you to enable this setting to customize the login screen background to your liking.
  • How to enable the autocorrect feature on Windows 10How to enable the autocorrect feature on Windows 10
    instructions for using the automatic error detection and correction feature on windows 10. how to enable the automatic error correction feature on windows
  • How to enable automatic call recording on AndroidHow to enable automatic call recording on Android
    recently, the google phone application has just added the feature of automatic call recording for the phone numbers not in the contact list.
  • How to fix the error is not logged in UbuntuHow to fix the error is not logged in Ubuntu
    one of the most common and controversial errors that ubuntu users encounter is the login boot loop. when you try to log in to ubuntu after booting, you will be taken back to the login screen and the process is infinite.