Skip to content

Instantly share code, notes, and snippets.

@jordan8037310
Created April 3, 2015 00:58
Show Gist options
  • Save jordan8037310/b91ed2aeae54b8eb6523 to your computer and use it in GitHub Desktop.
Save jordan8037310/b91ed2aeae54b8eb6523 to your computer and use it in GitHub Desktop.
Secure Files by CHMOD
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