RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2095381 - [RFE] cyrus-imapd user systemd-sysusers
Summary: [RFE] cyrus-imapd user systemd-sysusers
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: cyrus-imapd
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Martin Osvald 🛹
QA Contact: František Hrdina
URL:
Whiteboard:
Depends On: 2139054 2217149 2225157
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-09 16:52 UTC by Pat Riehecky
Modified: 2023-11-07 10:05 UTC (History)
5 users (show)

Fixed In Version: cyrus-imapd-3.4.1-10.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-07 08:36:44 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources systemd pull-request 94 0 None None None 2022-11-03 07:21:38 UTC
Red Hat Issue Tracker RHELPLAN-124840 0 None None None 2022-06-09 17:11:36 UTC
Red Hat Product Errata RHBA-2023:6540 0 None None None 2023-11-07 08:36:47 UTC

Description Pat Riehecky 2022-06-09 16:52:53 UTC
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

Comment 2 Martin Osvald 🛹 2022-11-03 07:21:39 UTC
This cannot be implemented without fixing sysusers.generate-pre.sh script first:

https://src.fedoraproject.org/rpms/systemd/pull-request/94

Comment 6 David Tardon 2023-07-25 08:16:00 UTC
(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)...

Comment 7 Christian Glombek 2023-07-25 11:55:10 UTC
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

Comment 14 errata-xmlrpc 2023-11-07 08:36:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (cyrus-imapd bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6540


Note You need to log in before you can comment on or make changes to this bug.