Features local permission issue Warning: mkdir(): Permission denied in features_export_build_form_submit() When I am trying to generate a new feature on local, it runs in permissions issue beginning with


  Warning: mkdir(): Permission denied in
  features_export_build_form_submit()


There is no www-data user on local. My environment is Mac OSX Mountain Lion.

This is an extension of this question
Folder permissions, owner/groups

Which deals with a similar issue on the server level. I am looking for the response for my local.

Current permissions for sites/all/modules/features are


  drwxr-xr-x  22 myusername  wheel   748 Aug  7 16:41 features


wheel is the group and root is its user.

Thus what user should own this directory to not run in to the mkdir permissions denied issue on Drupal frontend?

Thanks.
The point is that your folder needs to runs under the _www group (www-data is the group and user for linux machine). You can do it within a terminal or with the finder too.
So find the webserver root folder (~/Sites/MYDRUPALSITES, for example) and pull up the Finder Get Info window.

Then on the bottom left corner, click the group icon (The picture with 2 people) and then hold Option then click the “+” button. This will allow you to select system users and groups. Find the World Wide Web group, select that and change the group priviledge to “Read &amp; Write” and then use the cog-wheel to “Apply to enclosed items…”

Or just run the following chgrp (change group) command via Terminal : easiest way (y) !

cd ~/Sites

sudo chgrp -R _www MYDRUPALSITES/




That's the most revelant answer I can answer with your question. But it can also be the owner or a bad installation permissions set. Simple google : permission issue mamp/xammp. Or you could also run

sudo chmod 777 -R MYDRUPALSITES/


But I clearly do not recommend it on a online production (in local it's "acceptable").