Created
June 16, 2015 23:30
-
-
Save huebs/da070cbfb49aebf7e406 to your computer and use it in GitHub Desktop.
Grant Apache User R/W Access for the CWD and Its Subdirectories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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