LightDM Automatic Login: The Ultimate Guide For Beginners

To enable lightdm automatic login, follow these steps:

Configuration Steps

  • Edit the LightDM configuration file: Open the /etc/lightdm/*.d/* file (or a similar file in the /etc/lightdm/*.d/ directory) with root privileges. If the directory doesn't exist create it, and create the config file.
  • Add the autologin configuration: Add the following lines to the configuration file:
[SeatDefaults]

autologin-user=your_username

autologin-user-timeout=0

LightDM Automatic Login: The Ultimate Guide For Beginners
  • Replace your_username with the actual username you want to automatically log in.
  • autologin-user-timeout=0 disables the timeout, ensuring immediate login.
  • Save the file: Save the changes and exit the editor.
  • Reboot: Reboot your system for the changes to take effect.

Important Considerations

  • Security Implications: Automatic login bypasses the password prompt, which may have security implications. Ensure your system is in a secure environment.
  • File Location: If /etc/lightdm/*.d/* does not exist, create it. The name is just a convention; any file ending in .conf in that directory will be read by LightDM.
Share this article: