Last active
July 26, 2017 12:49
-
-
Save MiquelAdell/d13d664df27b493165f96a4d9145d35c to your computer and use it in GitHub Desktop.
ultra-basic WordPress 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
#!/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