Problems running Windows executables from samba shares


(Daniele Lolli) #1

I just installed a NS7.5 server, unattended install, two disks mirror. All went perfect.
Then I activated file server (no authentication yet, PDC frightens me a bit…) and trasferred all my stuff in it flawlessly: I can read, write, rename, etc.
The only problem is that when I try to double clic a Windows exe I get an error message to ask the net admin (that’s me, unfortunately!!): if I copy the file on the desktop it tuns, if i chmod 777 it runs.
I don’t wont to chmod 777 10 shares and 300GB stuff!! Anyone can help in fixing the problem for the files already in the server and for the future ones?

Thanks in advance.

(Stefano Zamboni) #2

777 is E V I L

Never use it

(Saito Benkei) #3

By default, Nethserver NG 7.x does not allow Windows clients to execute programs saved in shares.

To modify the behavior create this template-custom

mkdir -p /etc/e-smith/templates-custom/etc/samba/smb.conf
cd /etc/e-smith/templates-custom/etc/samba/smb.conf
vi 10EnableExecution

Insert the following lines into the 10EnableExecution file

# Custom
# 10EnableExecution

acl allow execute always = True

Activate the change with the command

signal-event nethserver-samba-update

The change is “global” and affects all shares and user directories.

(Marc) #4

Maybe a custom shared folder profile could help there.
Related: Make ibay files executable

(Daniele Lolli) #5

The answer from saitobenkei is enough for me, because I don’t need to keep the restriction on any share.