A script to configure WordPress file permissions based on recommendations from http://codex.wordpress.org/Hardening_WordPress#File_permissions
bash fix-wordpress-permissions.sh [-y] [wordpress root directory] [wordpress owner] [wordpress group] [webserver group]
-y dont ask for confirmation