Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 594092 - wrong users and groups creation in spec file
Summary: wrong users and groups creation in spec file
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: MAKEDEV
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Chris Lumens
QA Contact: Release Test Team
: 609226 (view as bug list)
Depends On:
Blocks: 593683
TreeView+ depends on / blocked
Reported: 2010-05-20 14:37 UTC by Peter Vrabec
Modified: 2013-01-10 05:58 UTC (History)
3 users (show)

Fixed In Version: MAKEDEV-3.24-6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-11-10 19:30:46 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Peter Vrabec 2010-05-20 14:37:01 UTC
Description of problem:
Please fix user/group creation in your spec file[1]. There were problems when
(UID != GID) && (UID<200) [2]. 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.


Comment 1 Chris Lumens 2010-06-07 19:23:26 UTC
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?

Comment 3 Alexander Todorov 2010-07-01 12:39:14 UTC
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
exit 0

Moving to VERIFIED.

Comment 4 Chris Lumens 2010-07-02 14:23:50 UTC
*** Bug 609226 has been marked as a duplicate of this bug. ***

Comment 5 2010-11-10 19:30:46 UTC
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.

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