Skip to content

Instantly share code, notes, and snippets.

@jnpkr
Created February 20, 2013 13:54
Show Gist options
  • Save jnpkr/4995680 to your computer and use it in GitHub Desktop.
Save jnpkr/4995680 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Run within WordPress directory
# - Changes file permissions but not ownership
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod 660 ./wp-config.php
find ./wp-content -type d -exec chmod 775 {} \;
find ./wp-content -type f -exec chmod 664 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment