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:


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.