[OpenAFS-devel] Strange permission denied..

Jason Edgecombe jason@rampaginggeek.com
Sat, 27 Apr 2013 11:54:19 -0400


On 04/25/2013 10:56 PM, hozer wrote:
> I've dusted off my old AFS-root initramfs stuff and updated it
> for debian wheezy (It seems to work pretty well), and I've had
> pretty much no trouble until I tried to install Git on the AFSroot..
>
> (amd64.test)root@galen:/var/cache/apt/archives# dpkg -i git_1%3a1.7.10.4-1+wheezy1_amd64.deb (Reading database ... 143905 files and directories currently installed.)
> Unpacking git (from git_1%3a1.7.10.4-1+wheezy1_amd64.deb) ...
> dpkg: error processing git_1%3a1.7.10.4-1+wheezy1_amd64.deb (--install):
>   unable to open '/usr/share/perl5/Git/SVN/Memoize/YAML.pm.dpkg-new': Permission denied
> Errors were encountered while processing:
>   git_1%3a1.7.10.4-1+wheezy1_amd64.deb
>
>
> I'm running with AFS system:administrator credentials, so I have
> no idea why this is failing. The line from strace is:
>
> 30913 open("/usr/share/perl5/Git/SVN/Memoize/YAML.pm.dpkg-new", O_WRONLY) = -1 EACCES (Permission denied)
>
> I can create this file manually, and as far as I can tell, there
> is nothing silly going on with SUID bits (which tripped me up before)
> but yet this fails.
>
> (If I create it manually, or copy the files from another machine,
> it looks like this:
>
> /usr/share/perl5/Git/SVN/Memoize$ ls -l
> total 2
> -r--r--r-- 1 root root 1748 Nov 24 00:28 YAML.pm
>
I suspect that this is waving a dead chicken, but have you tried 
running  "chmod 666 *" on those files?