FS#12333 - pacman sets wrong permissions in /var/lib/pacman/local
Attached to Project:
Arch Linux
Opened by Heiko Baums (cyberpatrol) - Wednesday, 03 December 2008, 22:41 GMT
Last edited by Allan McRae (Allan) - Sunday, 28 December 2008, 08:49 GMT
Opened by Heiko Baums (cyberpatrol) - Wednesday, 03 December 2008, 22:41 GMT
Last edited by Allan McRae (Allan) - Sunday, 28 December 2008, 08:49 GMT
|
Details
Description:
pacman 3.2.1 sets wrong permissions for the subdirectories in /var/lib/pacman/local. The subdirectories are chown to root:root as expected but only chmod 700 while it should be 755. The files in these subdirectories are not affected. They get 644. This leads to many error messages from yaourt. I usually update my system with yaourt -Syu --aur. After the updates I get this message: Packages that were instaled as dependencies but are no longer required by any installed package: Error: Error: Error: ... (filling pages) This is due to the wrong permissions. root has umask 022 and my unprivileged user has umask 077, but pacman usually is run with sudo. So this shouldn't be the reason. Additional info: * package version(s) pacman-3.2.1 Steps to reproduce: yaourt -Syu --aur or pacman -Syu |
This task depends upon
Closed by Allan McRae (Allan)
Sunday, 28 December 2008, 08:49 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#12263
Sunday, 28 December 2008, 08:49 GMT
Reason for closing: Duplicate
Additional comments about closing:
oldmask = umask(0000);
mkdir(pkgpath, 0755);
/* make sure we have a sane umask */
umask(0022);
After that, the files are created.
Today I ran a system update with `pacman -Syu`. There were 3 packages updated: mutagen-1.15-1, vlc-0.9.8a-1 and xvidcore-1.2.0-1.
Only the directory /var/lib/pacman/local/mutagen-1.15-1 had the wrong permissions 700. The other two directories had the correct permissions 755.
Can this be a problem with the packages or with a new version of a tool with which the packages are built?
I think there would be value in having some options in /etc/pacman.conf to allow explict setting of directory permissions and ownership. This would allow overcoming this specific problem, but also allow system administrators to control who can perform queries against the pacman package databases.