Arch Linux

Please read this before reporting a bug:

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

REPEAT: Do NOT report bugs for outdated packages!

FS#57693 - [filesystem][systemd] systemd-sysusers creates duplicate entries

Attached to Project: Arch Linux
Opened by loqs (loqs) - Thursday, 01 March 2018, 17:20 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 01 March 2018, 18:49 GMT
Task Type Bug Report
Category Packages: Core
Status Assigned
Assigned To Dave Reisner (falconindy)
Christian Hesse (eworm)
S├ębastien Luttringer (seblu)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No


systemd-sysusers creates duplicate group entries. Upstream also pointed out the entry for mail will be created 12:12.
I do not know if there are any security implications for the mail user being created with a different uid or the groups
or the groups ftp, mail, daemon, bin having two group entries with different gid's. There seems some debate upstream if
arch.conf sysusers snippest should create or mail 8:12 or 12:12.

Additional info:
* filesystem 2017.10-2
* systemd 237.64-1

Steps to reproduce:
pacstrap a new installation then run grpck -r
This task depends upon

Comment by loqs (loqs) - Thursday, 01 March 2018, 21:30 GMT seems any package that users a sysusers.conf snippet of the following form will also trigger the bug
g name # - -
u name #
where # can be an id number or - for autoassigned. The group line is superfluous but triggers the bug so it affect packages such as gdm, lightdm, sddm, boinc
upstream has a pull request for a fix
fixed incorrect field ordering name comes before #
Comment by loqs (loqs) - Friday, 02 March 2018, 17:04 GMT
Fixed by merge commit 47920c4a264eda94b1250e2de27bc8cd6b36a3ed which is
b5327d0a65b7515b4c8bcdf94cf71948da5d608e needs b9ee05c26617573e3d3c600bf755527e1852859c
please also consider backporting
that allows system users to specify a shell so the remaining case where sysusers could not be used could be resolved.
That would just leave the issue of already created duplicate entries.