Skip to content

Instantly share code, notes, and snippets.

@TacoSteemers
Created October 2, 2013 17:46
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 TacoSteemers/6797573 to your computer and use it in GitHub Desktop.
Save TacoSteemers/6797573 to your computer and use it in GitHub Desktop.
Recursive chown/chmod
Don't forget to use the correct user:group and permissions.
find . -print0 | xargs --null chown server:server
chmod for directories:
find . -type d -print0 | xargs --null chmod -R 755
chmod for files:
find . -type f -print0 | xargs --null chmod -R 755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment