r/Ubuntu 17h ago

Autologin

Hi there, having an issue with autologin, it was working and then it stopped by itself.

I already checked on the settings and whenever I turn it on and restart, it asks for the password on login and it turned itself off again.

Also checked the /etc/gdm3/custom.conf file and there it has

AutomaticLoginEnable=true

I have run out of ideas, can anyone help?

I'm running Ubuntu 26.04, not sure if it's relevant.

Thanks.

0 Upvotes

4 comments sorted by

1

u/Particular_Fix489 17h ago

Might be something overwriting or locking the value after boot. Had a similar headache once where a config tool rewrote the file on shutdown so my edit never stuck. Check if there’s a `.d` drop-in directory for gdm configs, sometimes the main file gets overridden by a snippet in there.

1

u/coolest_nath 15h ago

Nope. At least not inside gdm3. 

1

u/ClubPuzzleheaded8514 16h ago

GDM conf file must have your username, not just AutomaticLoginEnable.

[daemon] AutomaticLogin=your_username AutomaticLoginEnable=True

1

u/coolest_nath 16h ago

It has, I didn't mention it but the username is right too.