Bug 33257

Summary: only root can read rpm database after update to rpm 4.0.2
Product: [Retired] Red Hat Linux Reporter: Bobby de Vos <bobby-redhat>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-03-26 16:05:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bobby de Vos 2001-03-26 16:05:06 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.73 [en] (X11; U; Linux 2.2.16-3 i686)


Upgraded to
  rpm-4.0.2-6x
  rpm-build-4.0.2-6x
  rpm-devel-4.0.2-6x
  rpm-python-4.0.2-6x
  db3-3.1.17-4.6x
  popt-1.6.2-6x

As root, I could run
   rpm -q rpm
but not as a user. I fixed the problem by running
    chmod 644  /var/lib/rpm/*


Reproducible: Always
Steps to Reproduce:
1. rpm -ivh db3-3.1.17-4.6x.i386.rpm
2. rpm -Fvh rpm-*4.0.2*
3. rpm -Fvh popt-1.6.2-6x.i386.rpm 
4. rpm --rebuilddb
5. rpm -q rpm # as a user fails
	

Actual Results:  error: cannot open Packages index using db3 - Permission
denied (13)


Expected Results:  rpm-4.0.2-6x

Comment 1 Jeff Johnson 2001-03-26 16:15:00 UTC
Check root's umask setting,  rpm does not do anything special with directory or
file permissions, other than to sugeest default values of 755 and 644, but those
values are modified by the umask in operation at the time.