Red Hat Bugzilla – Bug 1309709
Installation tries to create user with static uid/gid, fails if uid/gid already exists.
Last modified: 2018-02-01 21:01:18 EST
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: 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):
Happens for every workstation build in my environment.
user/group rtkit are not created, rtkit doesn't work.
user rtkit gets assigned a *free*, not a static uid/gid and uses this.
See the %pre section in the spec file for the rtkit rpm:
(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
I don't understand how is it possible that on your system unbound user has UID that is smaller than 201.