Skip to content

Instantly share code, notes, and snippets.

@MiquelAdell
Last active July 26, 2017 12:49
Show Gist options
  • Save MiquelAdell/d13d664df27b493165f96a4d9145d35c to your computer and use it in GitHub Desktop.
Save MiquelAdell/d13d664df27b493165f96a4d9145d35c to your computer and use it in GitHub Desktop.
ultra-basic WordPress permissions
#!/usr/bin/env bash
find . \! -perm 644 -type f -exec chmod 644 {} ";"
find . \! -perm 755 -type d -exec chmod 755 {} ";"
find . -name 'wp-config.php' -exec chmod 600 {} ";"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment