Skip to content

Instantly share code, notes, and snippets.

@chicks
Created March 25, 2014 01:22
Show Gist options
  • Save chicks/9753600 to your computer and use it in GitHub Desktop.
Save chicks/9753600 to your computer and use it in GitHub Desktop.
Reset Permissions
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