Skip to content

Instantly share code, notes, and snippets.

@jasperf
Forked from pwenzel/fix_permissions.sh
Last active August 29, 2015 14:22
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 jasperf/28453b3fdf462ac4390d to your computer and use it in GitHub Desktop.
Save jasperf/28453b3fdf462ac4390d to your computer and use it in GitHub Desktop.
change all file and folder permission from shell with xargs for servers running mod PHP #chmod
# change permissions for all files, skipping dirs
find . -type f | xargs chmod 664
# change permissions for all dirs, skipping files
find . -type d | xargs chmod 775
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment