GNOME Bugzilla – Bug 695250
be more robust against autologin having an invalid user
Last modified: 2017-03-10 18:56:44 UTC
We apparently just fail to load if autologin is configured for an invalid user. We should instead fall back to showing the login screen probably.
We had multiple computers fail to boot today. GDM log shows: gdm-session-worker: <5>AccountsService: ActUserManager: user (null) has no username (uid: 0) gdm-autologin: pam_unix(gdm-autologin:account): could not identify user (from getpwnam(guest)) Turns out GDM won't start if an autologin user is deleted. Worked around by setting a different user to autologin (by starting gnome-session via xorg-xinit)
I ran into this today as well.
Created attachment 318931 [details] [review] manager: fix small leak
Created attachment 318932 [details] [review] manager: be more robust against autologin having an invalid user If the configured autologin user does not exist, fall back to a greeter session.
(In reply to Michael Catanzaro from comment #4) > Created attachment 318932 [details] [review] [review] > manager: be more robust against autologin having an invalid user > > If the configured autologin user does not exist, fall back to a > greeter session. It would be better to fall back to a greeter session if autologin fails for any reason, rather than trying to guess upfront if autologin will succeed or not. (There is the pathological case where the user account gets deleted by some program immediately after the check, after all, and other reasons while autologin might fail.) But that's harder!
Comment on attachment 318931 [details] [review] manager: fix small leak Attachment 318931 [details] pushed as be4ee31 - manager: fix small leak
let's get this in since it makes things more robust than they are today. if you get free time and want to work on comment 5 that's even better, of course. Attachment 318932 [details] pushed as cdc7c32 - manager: be more robust against autologin having an invalid user