Red Hat Bugzilla – Bug 594092
wrong users and groups creation in spec file
Last modified: 2013-01-10 00:58:16 EST
Description of problem:
Please fix user/group creation in your spec file. There were problems when
(UID != GID) && (UID<200) . For example:
Problem was caused by change/fix of shadow-utis behaviour. useradd does not
create group with same GID as user's UID for IDs < 200 (static/reserved) unless
it's done this way:
getent group qemu >/dev/null || groupadd -g 107 -r qemu
getent passwd qemu >/dev/null || \
useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
-c "qemu user" qemu
This issue should be fixed as soon as possible. Note, it can't be resolved by
any update once we have RHEL6 GA. Please fix it in Fedora too. thnx.
Can I get either a QA ack on this so I can do a build, or a nak so I can at least plan appropriately?
The spec file for MAKEDEV-3.24-6.el6 included in 0630 nightly has:
# Add the floopy group and the vcsa user.
getent group floppy >/dev/null || groupadd -g 19 -r -f floppy
getent group vcsa >/dev/null || groupadd -g 69 -r -f vcsa
getent passwd vcsa >/dev/null || \
useradd -r -g vcsa -d /dev -s /sbin/nologin -u 69 \
-c "virtual console memory owner" vcsa 2>/dev/null
Moving to VERIFIED.
*** Bug 609226 has been marked as a duplicate of this bug. ***
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.