Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.