Created
March 25, 2014 01:22
-
-
Save chicks/9753600 to your computer and use it in GitHub Desktop.
Reset Permissions
This file contains 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
find . \( \! -user apache -o \! -group apache \) -print0 | xargs -0 -r chown apache:apache | |
find . -type d \! -perm 2770 -print0 | xargs -0 -r chmod 2770 | |
find . -type f \! -perm 660 -print0 | xargs -0 -r chmod 660 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment