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
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.