Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#34826 - [gdm] fix directory permissions and user creation/deletion

Attached to Project: Arch Linux
Opened by Matthias Dienstbier (fs4000) - Wednesday, 17 April 2013, 16:19 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 30 July 2013, 23:18 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No


GDM changes the permissions of some directories at runtime[1] which causes warnings from ALPM. I adjusted the permissions in the PKGBUILD to match GDM's preferences since the default permissions in also don't match[2]. (I should report this upstream, too.) I also changed the owners of the directories directly in the PKGBUILD to get rid of that chown hack in the install script and to avoid warnings with pacman -Qkk.

The groupadd and useradd commands were missing the --system parameter which causes the user to be created without aging information and which will not create a home directory regardless of the setting CREATE_HOME in /etc/login.defs which is controllable by Arch users. The passwd -l is unnecessary. New users are created with locked password by default.
In post_remove a true was added to always give a success return value, even if userdel removes the gdm group because of USERGROUPS_ENAB in /etc/login.defs set to yes and thus getent gives an error code.

At last I removed the leading slashes in the install script. There doesn't seem to be a rule for this but most scripts don't have it. If you want a patch without removing the leading slashes, please tell me.

This task depends upon

Closed by  Jan de Groot (JGC)
Tuesday, 30 July 2013, 23:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.8.4
Comment by Matthias Dienstbier (fs4000) - Thursday, 18 April 2013, 19:32 GMT Comment by Peter Weber (hoschi) - Tuesday, 04 June 2013, 21:15 GMT