xxxxxxxxxx
chmod +x script-name-here.sh #Change the "script-name-here" to the name of your .sh file.
xxxxxxxxxx
sudo chown -R username path
sudo chmod -R 777 path
sudo chmod -R 755 path
xxxxxxxxxx
chmod -x script-name-here.sh #Change the "script-name-here" to the name of your .sh file.