File: //etc/cron.daily/fixPerms
#!/bin/bash
/usr/bin/find /home/*/public_html/wp-config.php -perm /o=r -ls
/usr/bin/find /home/*/public_html/configuration.php -perm /o=r -ls
/usr/bin/find /home/*/public_html/ ! -type l -perm /o=w -ls
/usr/bin/find /home/*/log/ -type d ! -user root -ls
/usr/bin/find /home/*/log/ -type d -perm /g=w -ls
/usr/bin/find /home/*/public_html/ ! -type l -perm /o=w -exec chmod o-w {} \;
/usr/bin/find /home/*/public_html/wp-config.php ! -type l -perm /o=r -exec chmod o-r {} \;
/usr/bin/find /home/*/public_html/configuration.php ! -type l -perm /o=r -exec chmod o-r {} \;
/usr/bin/find /home/*/log/ -type d ! -user root -exec chown root {} \;
/usr/bin/find /home/*/log/ -type d -perm /g=w -exec chmod g-w {} \;