FS#12187 - /var/lib/pacman/local getting wrong permissions for new packages

Attached to Project: Pacman
Opened by Austin (doorknob60) - Thursday, 20 November 2008, 04:31 GMT
Last edited by Dan McGee (toofishes) - Saturday, 22 November 2008, 00:40 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 3.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Summary and Info:
Ever since I upgraded my packages to [testing] (yesterday). whenever I install a new ackage, the folder it makes inside of /var/lib/pacman/local have drwx------ permissions, which means I can't even read the files without root, causing yaourt to give errors when run as a normal user (which you're supposed to). I have to chmod 755 (the permissions are supposed to be drwxr-xr-x) the folder every time I install something now, and I don't know why it suddenly stopped working right.

Steps to Reproduce:

Install any program...run ls -l /var/lib/pacman/local and look at the permissions for the newly installed program and it will be different than the others.


I've tried multiple times in multiple different ways (with yaourt, with pacman-color, with regular pacman, as root, with sudo, with different shells even) with the same results each time. It also happens with packages installed off of AUR with yaourt.
This task depends upon

Closed by  Dan McGee (toofishes)
Saturday, 22 November 2008, 00:40 GMT
Reason for closing:  Not a bug
Comment by Dan McGee (toofishes) - Thursday, 20 November 2008, 05:21 GMT
What is your umask, root's umask, and what filesystem? What have you installed since the last time you remember it working? (look at pacman.log). Does mkdir work as expected, or what permssions does it create directories with?
Comment by Austin (doorknob60) - Thursday, 20 November 2008, 19:30 GMT
I'm not at home right, so I'll answer as best as I can. My umask I believe is 0077 (that's the default right?) and roots is I think 0022 (again, I think that's default, if not then I might not be remembering right). I haven't changed any settings since I upgraded either. My file system is ext3 on both /home and /. I'll try mkdir when I get home, and I'll also look at pacman.log.
Comment by Austin (doorknob60) - Friday, 21 November 2008, 04:06 GMT
Hmm, running mkdir and making a new folder in there gives it drwxr-xr-x permissions, which it's supposed to be. Wonder why pacman isn't giving it the right permissions?
Wait a sec....I commented the line umask 077 in my zshrc last night, and I appreantly didnt close the terminal, and after keep testing it still messed up. *facepalm* seems to be working now, although last night I also tried it in bash and root, so I don't know if that was the problem (my umask shows as 022 not 077 now). After more testing I'll post back.
Comment by Austin (doorknob60) - Saturday, 22 November 2008, 00:37 GMT
Wow, I kinda feel stupid now. I think when I opened new shells from the zsh with the incorrect umask, the new shells then took on that umask, and same with su. Everytyhings fine now *facepalm* Stupid zshrc from the internet :P

Loading...