sudo chmod -R a+rwx /path/to/folder
chown {user:group} {directory} -R
sudo chmod -R 757 /var/www
sudo chmod -R 757 <file>
chmod -x script-name-here.sh #Change the "script-name-here" to the name of your .sh file.