Last active
August 29, 2015 14:06
-
-
Save GregGallant/6d34d35641f26d42da72 to your computer and use it in GitHub Desktop.
Specified chmod for files and dirs
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 change mode of only files (to something workably secure) | |
find /my/awesome/path -type f -exec chmod 644 {} + | |
Recursive change mode of only directories (to something workably secure) | |
find /my/awesome/path -type d -exec chmod 755 {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment