Red Hat Bugzilla – Bug 115388
inconsistent results as root and non-root user
Last modified: 2007-11-30 17:10:36 EST
Description of problem:
When I enter the command "rpm -qa mozilla*" as the root user, I get a
listing of all the installed packages whose name begins with "mozilla".
When I do the same thing as a non-root user, I get nothing. However,
if I do "rpm -qa | grep mozilla", I do get the listing of installed
This is only on the x86_64. When I do "rpm -qa mozilla*" on a ix86
system (both root and non-root), I get the listing of installed
packages wose name begins with "mozilla".
Hmmm, odd, very odd.
Can you try rm -f /var/lib/rpm/__db* please? That's the
major difference root vs. non-root, non-root cannot create
OK, did the rm -f and then tried "rpm -qa mozilla*" as non-root ...
nothing. Then I tried it as root and got the "usual" output.
Remember, this works just fine as root or non-root on the i386
(actually dual athlon).
HA! Found it.
I am running the Mike Harris stuff for .rpmrc and .rpmmacros to do my
rpm building as non-root and I had a couple of mozilla directories in
my path. The mozilla* was being "expanded" and it could not find any
packages like those. Doing rpm -qa "mozilla*" worked fine.