Permission denied: access [...] failed because search permissions missing
I've got an Xsan setup with 2 Xserves and 2 G5 clients.
The home directories are served out of AFP from the Open Directory master server:
/Network/Servers/ssv1.my.do.main/Users/me/Sites/
in other words.
A user complained that after I moved his home directory to this same tree (he'd created a local home directory on one of the G5's, unbeknownst to me) that his Personal Web Sharing stopped working.
Sure enough, it had.
So, technically, I'm running the Web server on a regular G5 client and not on Mac OS X Server; but at the same time, I think the problem is due to the network home directory.
The error I get is
[Tue Jul 25 16:21:40 2006] [error] [client N.N.N.N] (13)Permission denied: access to /~me failed because search permissions are missing on a component of the path
Answer's obvious, right? Make sure to chmod go+x to all path elements on down from "/" to the ~/Sites folder, right?
Been there, done that - no effect.
Even tried changing ~/Sites to be group-owned by the "www" group.
If I slap a ktrace(1) onto the Apache server, I get
13402 httpd CALL stat(0x1868c10,0x1866f00)
13402 httpd NAMI "/Network/Servers/ssv1.my.do.main/Users/me/Sites"
13402 httpd RET stat -1 errno 13 Permission denied
13402 httpd CALL ppc_gettimeofday(0xbfffb5a8,0)
13402 httpd RET ppc_gettimeofday 1153867740/0x44c69fdc
13402 httpd CALL write(0xf,0x183d200,0xac)
13402 httpd GIO fd 15 wrote 172 bytes
"[Tue Jul 25 15:49:00 2006] [error] [client N.N.N.N] (13)Permission denied: access to /~me/ failed because search permissions are missing on a component of the path
I should make an important note. There is one remaining "local" user/home directory on the machines in question; accessing their Personal Home Page continues to work just fine. It's only these ones served from the Xserve via AFP that have this permissions issue.
I have absolutely no clue why user "www" would not be able to stat() that directory path. Every element - and I even followed symbolic links - is at least r-xr-x for g+o permissions. Is there a possibility there's some normally-hidden ACL sort of access problem going on here?
(A Google search turned up 1 hit on this problem with remote users. That person was mounting a SAMBA share to get at the Personal Web Sharing directory.)
2 x Xserve G5, 3 x Xserve RAID, 2 x G5 clients, Mac OS X (10.4.7)