Bash script to correct public html permissions errors
From SHellium Wiki
Default umask on shellium does not allow the www user account to access your files. This sometimes presents a problem for new members wanting to host files in their public_html folder. This script will change the permissions of and inside your public_html folder (or any folder specified) to '755' for folders, and to o+r (add ""read"" priv for ""others"") for files.
Before using this script you should make an effort to understand how it works. You are welcome to modify it for your own purposes.