Hi,
Dunno if I'm the only one who encounters such strange
behaviour..... I can't compile Window Maker source RPM using non-root
user at all. When I want to "rpm -ivh" the source rpm, the following error
messages spits out:
=======================================================================
cannot open Packages index using db3 - Permission denied (13)
--> The rpm database cannot be opened in db3 format.
If you have just upgraded the rpm package you need to convert
your database to db3 format by running "rpm --rebuilddb" as root.
error: cannot open Packages database in /var/lib/rpm
=======================================================================
So I go on and checked all files under /var/lib/rpm are readable by me,
but still the same result. All other source RPMs can be installed
perfectly, but not this one. So annoyed that I did an strace:
=======================================================================
gettimeofday({986785537, 102418}, NULL) = 0
brk(0x81c8000) = 0x81c8000
brk(0x81c9000) = 0x81c9000
open("/var/lib/rpm/Packages", O_RDWR|O_CREAT|O_EXCL, 0644) = -1 EEXIST
(File exists)
open("/var/lib/rpm/Packages", O_RDWR) = -1 EACCES (Permission denied)
write(2, "cannot open Packages index using db3 - Permission denied (13)",
61) = 61
=======================================================================
How come!? O_RDWR? What rpm is it? Why would it want to write to rpm
database!?
Abel Cheung