GNOME Bugzilla – Bug 623225
gdm user manager ignores /etc/login.defs and has hard-coded DEFAULT_MINIMAL_UID
Last modified: 2011-05-17 17:39:20 UTC
The GDM user manager has a hard-coded DEFAULT_MINIMAL_UID instead of checking the system MIN_UID in /etc/login.defs. This causes users to vanish from GDM that used to be able to log in (if they had a UID below the hardcoded GDM value). The attached patch fixes this problem. https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/427462 https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/459199
Created attachment 164979 [details] [review] examine login.defs for MIN_UID
Wouldn't it be better to check in the configure script if /etc/login.defs exists on the system and #ifdef the code based on that. OpenSolaris does not have /etc/login.defs. I notice that you use "#ifndef __sun" which will probably keep things working on OpenSolaris, however I'd bet other distros may not have this file as well.
login.defs file is optional anyway, so the patch should make sure that it's not an error condition that the file is absent.
So I think this patch should go in the fdo accountsservice module, since we're going to be depending on that in gnome 3.
Bug filed at fdo: https://bugzilla.freedesktop.org/show_bug.cgi?id=34893
This got fixed a while ago.