Created
May 14, 2014 08:47
-
-
Save wpk-/a5baec4424472125df88 to your computer and use it in GitHub Desktop.
Recursive chmod, properly
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
# 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