Is it possible to enable execution of files from a cifs mount in bash

filesystemspermissions

I have a remote mount with cifs and it would seem there is no way to have bash execute scripts from that mount, is it possible to enable such execution?

ls -lh ini*
-rwxrwxr-x 1 alan 500 222 2012-03-23 10:16 initall.sh

bash --version
GNU bash, version 4.2.8(1)-release (i686-pc-linux-gnu)

./initall.sh
bash: ./initall.sh: Permission denied

The cifs mount seems to support also unix extensions as I am able to chmod the file correctly.

Here follows the mount options:
user,auto,pass=***,uid=alan,user=***

Best Answer

The user mount option turns off exec by default. Change the mount options to include exec explicitly.

Related Question