|Summary:||wrong users and groups creation in spec file|
|Product:||Red Hat Enterprise Linux 6||Reporter:||Peter Vrabec <pvrabec>|
|Component:||mysql||Assignee:||Tom Lane <tgl>|
|Status:||CLOSED CURRENTRELEASE||QA Contact:||qe-baseos-daemons|
|Version:||6.0||CC:||asersen, azelinka, byte, hhorak, syeghiay|
|Fixed In Version:||mysql-5.1.47-1||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2010-11-10 21:11:28 UTC||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
|Bug Depends On:|
Description Peter Vrabec 2010-05-20 14:39:47 UTC
Description of problem: Please fix user/group creation in your spec file. There were problems when (UID != GID) && (UID<200) . For example: tryitd:x:194:482:TryIt:/:/sbin/nologin 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. --------  https://fedoraproject.org/wiki/Packaging:UsersAndGroups  https://bugzilla.redhat.com/show_bug.cgi?id=593683
Comment 1 Tom Lane 2010-05-20 15:16:19 UTC
Hm, isn't the consensus in bug #593683 that useradd should be fixed to preserve the old behavior? I agree that it wouldn't be a bad idea to modify the mysql spec file to make the group ID be specified explicitly, but I hardly think this is a blocker. BTW, are you satisfied with the way the postgresql spec file does the same thing?
Comment 2 Peter Vrabec 2010-05-24 10:11:37 UTC
Yes the consensus was to fix useradd. Nevertheless, I recommend fixing spec files too. Since useradd is already fixed this doesn't need to be blocker. I think postgresql does user/group creation correctly.
Comment 3 Fedora Update System 2010-05-24 23:31:51 UTC
mysql-5.1.47-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/mysql-5.1.47-1.fc12
Comment 4 Fedora Update System 2010-05-24 23:32:12 UTC
mysql-5.1.47-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/mysql-5.1.47-1.fc13
Comment 5 Fedora Update System 2010-05-24 23:32:31 UTC
mysql-5.1.47-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/mysql-5.1.47-1.fc11
Comment 7 Fedora Update System 2010-06-07 22:28:00 UTC
mysql-5.1.47-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
Comment 8 Fedora Update System 2010-06-07 22:30:32 UTC
mysql-5.1.47-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
Comment 9 Fedora Update System 2010-06-07 22:31:57 UTC
mysql-5.1.47-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
Comment 12 firstname.lastname@example.org 2010-11-10 21:11:28 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.