Created
April 3, 2015 00:58
-
-
Save jordan8037310/b91ed2aeae54b8eb6523 to your computer and use it in GitHub Desktop.
Secure Files by CHMOD
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
find /path/to/base/dir -type d -print0 | xargs -0 chmod 755 find /path/to/base/dir -type f -print0 | xargs -0 chmod 644 | |
# /path/to/base/dir should be the root of your web instance, if you're into securing that kinda thing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment