Skip to content

Instantly share code, notes, and snippets.

@jkereako
Created February 27, 2015 19:03
Show Gist options
  • Save jkereako/763e37cc709ef9b2913a to your computer and use it in GitHub Desktop.
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
# 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