shell script permission denied code example

Example 1: permission denied running shell script

`# Try:`
chmod +rx script.sh
`# This will make the file executable. Then try:`
./script.sh

Example 2: permission denied bash

chmod -R +x folder/*
# give execution permission for all scripts in the directory

Example 3: linux execute permission denied

// permission denied ? give exeutue  permissions 

chmod u+x program_name
// now run program
program_name

Example 4: permission denied directory linux

sudo chown -R francisco-vergara:francisco-vergara /home/sixven/camp_sms/inputs