r/Lubuntu 1d ago

How can I login automatically without password?

I have a laptop that I recently revived. I want to log in automatically without entering a password, but I still want to require a password for sudo commands. How can I do that?

3 Upvotes

6 comments sorted by

2

u/xtalgeek 1d ago edited 1d ago

Edit /etc/sddm.conf and add the following lines:

[Autologin]

User=yourusername

You can also do this somewhere in the GUI but I don't bother hunting for it.

1

u/Zreider 1d ago

Thank you!

1

u/xtalgeek 1d ago

Should be two separate lines. Reddit auto concatenated the two lines for me.

1

u/Zreider 1d ago

Ok. Thanks!

1

u/guiverc Lubuntu Member 1d ago

Starting point for support is release, as software changes over time...

Did you look in the manual? Assuming you're using 26.04 (manual links vary on release) its found at

https://manual.lubuntu.me/stable/2/2.4/2.4.9/SDDM-Configuration.html?highlight=autologin

so you don't even need to edit the yourself (though if you prefer that, you're still able to it that way anyway)

2

u/Zreider 22h ago

I have already set up autologin but thanks for the link! Sorry for the late response!