I am trying to run camera.sh which I made executable by
chmod 755 camera.sh
It works okay, but when I run it I get the error...
root@raspberrypi:/home/pi/timelapse# ./camera.sh
-bash: ./camera.sh: Permission denied
I even logged in as root, but I still got the same error. I can't even run chown/chmod/owner commands to 777. It pretty much gives me a permission error for everything I do.
Permissions on file shown below:
root@raspberrypi:/home/pi/timelapse# ls -l camera.sh
-rwxr-xr-x 1 root root 234 Jul 29 10:02 camera.sh
I am running Raspbian and SSHing from my desktop.
Any ideas?
ls -l camera.sh
root@raspberrypi:/home/pi/timelapse# ls -l camera.sh -rwxr-xr-x 1 root root 234 Jul 29 10:02 camera.sh root@raspberrypi:/home/pi/timelapse#
chmod +x camera.sh
. Do not prefix the command with sudo. Then try running it.