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 - missing Requires: shadow-utils, needed to create "rpm" user
Summary: missing Requires: shadow-utils, needed to create "rpm" user
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 8.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-02-01 18:41 UTC by Bert de Bruijn
Modified: 2007-04-18 16:50 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-02-01 19:46:03 UTC


Attachments (Terms of Use)

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.


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