Skip to content

Instantly share code, notes, and snippets.

@huebs
Created June 16, 2015 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huebs/da070cbfb49aebf7e406 to your computer and use it in GitHub Desktop.
Save huebs/da070cbfb49aebf7e406 to your computer and use it in GitHub Desktop.
Grant Apache User R/W Access for the CWD and Its Subdirectories
sudo chmod -R +a "$(ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | uniq | cut -d\ -f 1) allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment