NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
jszatmary
Dec 05, 2008Aspirant
AFP Mount Point Permissions (Solved)
I have the following situation on Leopard 10.5.5: % mkdir a % ls -ld a drwxr-xr-x 2 User staff 68 Dec 4 21:53 a % mount_afp afp://User:password@readynas/Share % ls-ld a drwx------@ 9 User ...
jszatmary
Dec 07, 2008Aspirant
Well, I found a work-around... In my case, the directory which the web server needed to access was "Pictures." Since the mount point permissions were always "rwx------/700" I needed a way to mount this share as the web server user.
My fix was to create a StartupItem (loaded during boot) that would make this all happen. The StartupItem creates a directory called "Pictures" in /Library/WebServer, chowns it to "_www", and then mounts the share using sudo -u _www, using a ReadyNAS user account that has only read permissions to the share.
It's not the most elegant thing, but it works. I hope this can help someone else. I can't believe nobody has run into this problem before; maybe everyone is running web servers on Linux only (I noticed the permissions for the mount point under Linux - Ubuntu - show up as rwxrwxrwx/777.)
My fix was to create a StartupItem (loaded during boot) that would make this all happen. The StartupItem creates a directory called "Pictures" in /Library/WebServer, chowns it to "_www", and then mounts the share using sudo -u _www, using a ReadyNAS user account that has only read permissions to the share.
It's not the most elegant thing, but it works. I hope this can help someone else. I can't believe nobody has run into this problem before; maybe everyone is running web servers on Linux only (I noticed the permissions for the mount point under Linux - Ubuntu - show up as rwxrwxrwx/777.)
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!