Skip to content

Instantly share code, notes, and snippets.

@wpk-
Created May 14, 2014 08:47
Show Gist options
  • Save wpk-/a5baec4424472125df88 to your computer and use it in GitHub Desktop.
Save wpk-/a5baec4424472125df88 to your computer and use it in GitHub Desktop.
Recursive chmod, properly
# recursive chmod 660 on files
find . -type f -exec chmod 660 {} \;
# recursive chmod 770 on folders
find . -type d -exec chmod 770 {} \;
# and if we need to adjust only very specific files
find . -type f -name '*.py' -exec chmod 770 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment