Description of problem: cyrus-imapd is using static useradd scripts Version-Release number of selected component (if applicable): cyrus-imapd-3.4.1-6.el9.src.rpm How reproducible: 100% Steps to Reproduce: 1. review %pre 2. 3. Actual results: %pre # Create 'cyrus' user on target host getent group saslauth >/dev/null || /usr/sbin/groupadd -g %gid -r saslauth getent passwd cyrus >/dev/null || /usr/sbin/useradd -c "Cyrus IMAP Server" -d /var/lib/imap -g %cyrusgroup \ -G saslauth -s /sbin/nologin -u %uid -r %cyrususer Expected results: use of system-sysusers Additional info: https://www.freedesktop.org/software/systemd/man/systemd-sysusers.html https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format
This cannot be implemented without fixing sysusers.generate-pre.sh script first: https://src.fedoraproject.org/rpms/systemd/pull-request/94
(In reply to Pat Riehecky from comment #0) > Description of problem: > cyrus-imapd is using static useradd scripts And why is that a problem? The only advantage of systemd-sysusers--as used in rpm scriptlets--is that the command lines are shorter. But that's hardly a sufficient reason for backporting such changes to existing releases (either of RHEL or Fedora)...
This is a problem because static useradd scripts are incompatible with `rpm-ostree compose`, which consumes the declarative sysusers config snippets. Using a sysusers config has been mandated by the Fedora Packaging Guidelines for a while now: https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/ More context: https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format https://github.com/coreos/fedora-coreos-tracker/issues/1208