Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using OS X Mountain Lion for web development. I am running the built-in Apache server. Now I need to allow the PHP script I am running to write in a directory. But if I chown the directory to _www, then the editor I am using, which is being used with the logged in user's account, is then unable to edit/write those files. So it's either the _www that can write to the directory or the user.

So how shall I go about solving this?

share|improve this question

Under OSX you can assign previleges to multiple users using the ACL. It can be accessed though Finder or its chmod implementation (+a option).

Or you can use the usual UNIX way where you create a group and put both your user and the apache user into it and make the group the group owner of the folder and chmod -R g+rw if necessary.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.