Last active
February 8, 2018 21:48
-
-
Save rderik/024ed2b7e0b47ea15670b92ad3269edd to your computer and use it in GitHub Desktop.
Applies standard secure file permissions to normal files and directories
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
#search for Directories and set the permissions to 755 | |
find . -type d -exec chmod 755 {} \; | |
#search for files and set the permissions to 644 | |
find . -type f -exec chmod 644 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment