I have a local instance of apache with an application writing to a cache directory. The cache directory is written to by _www:staff. It appears in the finder with a 'no-entry' icon. How can I add my own user to the _www:staff group permanently to prevent this from happening now and in future if I clear the cache? I would like to browse the directory from finder.
OS is OSX Mountain Lion.
I have tried the following:
sudo dseditgroup -o edit -a myusername -t user _www //i substituted my own username
example ls output:
drwxrwxrwx 234 _www staff 7956 7 Nov 17:09 .
drwxr-xr-x 17 myusername staff 578 7 Nov 09:33 ..
-rw-r--r--@ 1 myusername staff 6148 7 Nov 09:22 .DS_Store
drwx------ 3 _www staff 102 7 Nov 09:23 spektrix-00
drwx------ 3 _www staff 102 7 Nov 09:23 spektrix-01
drwx------ 5 _www staff 170 7 Nov 09:22 spektrix-02
drwx------ 9 _www staff 306 7 Nov 09:23 spektrix-03
drwx------ 6 _www staff 204 7 Nov 09:23 spektrix-04
drwx------ 4 _www staff 136 7 Nov 09:22 spektrix-05
drwx------ 7 _www staff 238 7 Nov 09:22 spektrix-06
drwx------ 4 _www staff 136 7 Nov 09:22 spektrix-07
drwx------ 4 _www staff 136 7 Nov 08:55 spektrix-08
drwx------ 4 _www staff 136 7 Nov 09:23 spektrix-09
drwx------ 4 _www staff 136 7 Nov 08:55 spektrix-0a
drwx------ 3 _www staff 102 7 Nov 08:54 spektrix-0b