This question already has an answer here:

There are many instructions on how to enable autologin on various Ubuntu-based distros. However, I couldn't find a solution explicitly for Lubuntu 16.04 LTS with LightDM.

marked as duplicate by Panther, Organic Marble, karel, pomsky, Zanna Oct 23 '17 at 12:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


I found the solution in this thread about Lubuntu 16.10: Lubuntu 16.10: How to make login through greeter without typing password work

  1. Open new configuration file with Leafpad (or your preferred editor)

    sudo leafpad /etc/lightdm/lightdm.conf.d/10-autologin.conf
  2. Paste the following lines

    autologin-guest = false
    autologin-user = yourusername
    autologin-user-timeout = 0
    allow-guest = false
  3. Replace yourusername with the name of the user you want to have logged in automatically

  • So why are you creating this question / answer ? It is a duplicate of both question and answer ??? Also, if all else fails, sudo nano .... also works. – Panther Oct 23 '17 at 1:40
  • We do not write an answer for each release unless there is something specific to that release. So if the answer works for 16.04 and 16.10 , as it seems in your case, we would not write an answer for each release. Hope that is clear, but, you can always ask on meta also. – Panther Oct 23 '17 at 15:32
  • It is helpful information to know what release someone is using "just in in case". I highly suggest you ask for guidance on meta to get community input rather then in comments here. meta.askubuntu.com/questions – Panther Oct 23 '17 at 16:04
  • It works for 18.04 too. I would have said, if all else fails, use vi ... You may not always get leafpad or nano or any other editor that is the flavour of the month or the flavour of the distribution, but you will almost always get vi. – cup Oct 2 '18 at 20:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.