The cyrus-sasl package has long had this in the spec file: getent group %{username} >/dev/null || groupadd -g 76 -r %{username} getent passwd %{username} >/dev/null || useradd -r -g %{username} -d %{homedir} -s /sbin/nologin -c "%{hint}" %{username}
However reading the Allocation Strategies here: https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/
I see no mention of gid 76 as a reserved gid. I wonder if this is something that should be changed. I cam up to instruction as I am looking into replacing the manual user allocation with sysusers and the guideline say it si a MUST to open a ticket for static allocations.
Any guidance?
This is the tentative conversion PR: https://src.fedoraproject.org/rpms/cyrus-sasl/pull-request/7 I will push it to rawhide if I receive no feedback as my understanding is that it is equivalent to what the current code is doing.
The full table of UIDs/GIDs allocations is at https://pagure.io/setup/blob/master/f/uidgid.
According to that, the expected ID mapping is: * saslauth group has static GID 76 * saslauth user does not have a static UID * cyrus user has static UID 76 and primary group ID 12 (i.e. mail)
saslauth
76
cyrus
12
mail
I think the saslauth.sysusers content in your PR matches the above allocations. Thanks for doing the sysusers.d porting!
saslauth.sysusers
+1
Log in to comment on this ticket.