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 83294

Summary: missing Requires: shadow-utils, needed to create "rpm" user
Product: [Retired] Red Hat Linux Reporter: Bert de Bruijn <bob>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED DEFERRED QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-02-01 19:46:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Bert de Bruijn 2003-02-01 18:41:27 UTC
Description of problem:
the rpm package creates rpm user using 
/usr/sbin/groupadd -g 37 rpm > /dev/null 2>&1
/usr/sbin/useradd  -r -d /var/lib/rpm -u 37 -g 37 rpm > /dev/null 2>&1
but there is no prereq on shadow-utils which contains /usr/sbin/groupadd and
/usr/sbin/useradd. Also, the "dev" package containing /dev/null is not prereq'ed.


Version-Release number of selected component (if applicable):
standard redhat-8.0

How reproducible:
install a chrooted redhat-8.0 and install rpm-4.1 before installing
shadow-utils. No dependency problem is reported, but the rpm user can't be created.


    
Actual results:
# /tmp/install-image-rpm --root /mnt/rh80 -Uvh rpm-4.1-1.06.i386.rpm 
warning: rpm-4.1-1.06.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
/var/tmp/rpm-tmp.15611: line 11: /dev/null: No such file or directory
/var/tmp/rpm-tmp.15611: line 12: /dev/null: No such file or directory
warning: user rpm does not exist - using root
warning: group rpm does not exist - using root
[...]
   1:rpm                    ########################################### [100%]
/bin/chown: `rpm.rpm': invalid user


Expected results:
# /tmp/install-image-rpm --root /mnt/rh80 -Uvh rpm-4.1-1.06.i386.rpm 
warning: rpm-4.1-1.06.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
   1:rpm                    ########################################### [100%]

Additional info:
chrooted installs are not important for Joe Average Home User, but are very
important when doing large scale installs. Having correct prereqs is necessary
for those installs (and would help Red Hat during the making of new versions, I
guess).

Comment 1 Jeff Johnson 2003-02-01 19:46:03 UTC
ATM noting needs or requires rpm.rpm, it's equivalent
to root.root, so adding dependencies to guarantee
shadow-utils is installed Really Doesn't Matter.