I was just setting up a simple script to sync my project files with the ones I have stored at
OSC, where I run into this error:
This happens when I run my super-simple script of: (with the working part cut out)
Code:
#!/bin/bash
# setup a couple of variables
# call to scp using the variables abover
The part which cause's the error seems to be the simple interpreter line at the top. If I run bash manually through bash <name of my file>, it works fine. If I try to run it with just ./<name of my file>, I get the permission denied error. If I run it as root (IE, sudo ./<name of my file>), it works fine.
I did check /bin/bash just for giggles and it is executable by all. What could be causing this?