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 2225157 - Backport fix to support user:group notation by sysusers.generate-pre.sh script
Summary: Backport fix to support user:group notation by sysusers.generate-pre.sh script
Keywords:
Status: CLOSED DUPLICATE of bug 2217149
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: systemd
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: systemd maint
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks: 2095381
TreeView+ depends on / blocked
 
Reported: 2023-07-24 12:31 UTC by Martin Osvald 🛹
Modified: 2023-07-25 08:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-25 08:21:49 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-163135 0 None None None 2023-07-24 12:33:28 UTC

Description Martin Osvald 🛹 2023-07-24 12:31:23 UTC
Description of problem:

Please, backport the below patch to RHEL9 so that pkgs like cyrus-imapd can run under a different primary group:

https://src.fedoraproject.org/rpms/systemd/c/83301531c0aa22ffc155096826d8f5250c6a880a?branch=rawhide


Version-Release number of selected component (if applicable):

systemd-rpm-macros-252-15.el9.noarch


How reproducible:

Always


Steps to Reproduce:

1. Have the below in a file as a param to %sysusers_create_compat macro:
~~~
#Type Name     ID             GECOS                 Home directory Shell
g     saslauth 76
g     mail     12
u     cyrus    76:mail        "Cyrus IMAP Server"   /var/lib/imap  /sbin/nologin
m     cyrus    saslauth
~~~


Actual results:

~~~
# dnf install cyrus-imapd-3.4.1-9.el9.x86_64.rpm cyrus-imapd-libs-3.4.1-9.el9.x86_64.rpm cyrus-imapd-utils-3.4.1-9.el9.x86_64.rpm perl-Cyrus-3.4.1-9.el9.x86_64.rpm
...
groupadd: invalid group ID '76:mail'
useradd: invalid user ID '76:mail'
~~~


Expected results:

No errors, user&groups get created properly.


Additional info:

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

Comment 1 David Tardon 2023-07-25 08:21:49 UTC

*** This bug has been marked as a duplicate of bug 2217149 ***


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