Created
February 27, 2015 19:03
-
-
Save jkereako/763e37cc709ef9b2913a to your computer and use it in GitHub Desktop.
Recursively sets file and directory permissions. Credit: http://codex.wordpress.org/Hardening_WordPress#Changing_file_permissions
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
# Copy and paste these commands in your terminal | |
# Directories | |
find /path/to/dir/ -type d -exec chmod 755 {} \; | |
# Files | |
find /path/to/dir/ -type f -exec chmod 644 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment