3
I want to run a script directly from a windows share. The windows machine is running Windows 7 and I try to run the script from Ubuntu 13.10, on the same LAN. I tried with a bash script as well as a python script and when I run it, I have the following error:
zsh: permission denied: ./bc.sh
The share containg the script is mounted like this:
sudo mount -t cifs -o username=user,passwordpass=,exec,rw,users,file_mode=0777,dir_mode=0777 //192.168.0.3/folder /mnt/Win7
The script has the following rights:
-rwxrwxrwx 0 root root 24 Dec 10 20:50 bc.sh
And contains only a simple command:
#!/bin/bash
echo "Test"
I tried to run it with sudo but didn't work as well.
sudo: unable to execute ./bc.sh: Permission denied
I also tried with bash instead of zsh, without success.
Any idea about what I'm missing?
Thanks.
If this really is the answer (as marked) then it would be great to understand why. As @MariusMatutiae said, you wouldn't normally need to run it with
sh
but there's something about the network share that changes this. – Leonard Challis – 2016-11-07T14:18:01.640No, that's not necessary: the script has been made executable, thus it can be run like in the OP – MariusMatutiae – 2013-12-11T11:41:35.930