Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
rtkit rpm tries to create user/group rtkit with static uid/gid 172. This fails if another package was installed previously that got assigned this uid.
This results in GNOME not logging in at all (and a subsequent message that something went wrong), and error messages like
> dbus-daemon[756]: Unknown username "rtkit" in message bus configuration file
If I manually change the uid/gid of the conflicting user (unbound in my case) and reinstall rtkit, everything works as expected.
Version-Release number of selected component (if applicable):
0.11-10.el7
How reproducible:
Happens for every workstation build in my environment.
Actual results:
user/group rtkit are not created, rtkit doesn't work.
Expected results:
user rtkit gets assigned a *free*, not a static uid/gid and uses this.
Additional info:
See the %pre section in the spec file for the rtkit rpm:
https://git.centos.org/blob/rpms!rtkit/88c2c1e7a968cf0e62c6ad474e1915dccc7b229a/SPECS!rtkit.spec
(In reply to weimann from comment #0)
> Expected results:
>
> user rtkit gets assigned a *free*, not a static uid/gid and uses this.
>
This is actually expected. rtkit has static uid/gid reservation (see /usr/share/doc/setup-2.8.71/uidgid).
Here in %pre from unbound-libs that create unbound user,
getent group unbound >/dev/null || groupadd -r unbound
getent passwd unbound >/dev/null || \
useradd -r -g unbound -d /etc/unbound -s /sbin/nologin \
-c "Unbound DNS resolver" unbound
Above seems to be correct. Script creates system user and group that should get dynamically allocated uid/gid from range SYS_UID_MIN-SYS_UID_MAX.
$ egrep 'SYS_UID_(MIN|MAX)' /etc/login.defs
SYS_UID_MIN 201
SYS_UID_MAX 999
I don't understand how is it possible that on your system unbound user has UID that is smaller than 201.