This problem has bugged me so much and I can't find a solution. Sorry in advance if it is a newbie question.
Let's say I have a file called
run.sh that contains:
#! /bin/sh -x x-www-browser index.html
ls -l run.sh says:
-rwxr-xr-x 1 myusername myusername 39 Jan 9 19:32 run.sh
bash: ./run.sh: Permission denied
Why does it not work? Why does
sh -x run.sh work perfectly?
More info, since it's not so easy apparently
If I do a
sudo, it will not output an error, but won't do anything either.
myusername@crunchbang:/mnt/data$ sudo ./run.sh [sudo] password for myusername: myusername@crunchbang:/mnt/data$