Sunday, August 28, 2016

Samba share .exe file with executable permission

Normally if you share .exe file and execute it on samba it won't execute and it will display error message similar to the one below

"you do not have permission to access \\192.168.202.1\software\setup.exe. Contact your network administrator to request access."

so to solve this we add acl allow execute always = True to our shared directory directive

example :

[software]
  comment = internal software for developer
  browseable = yes
  guest ok = yes
  read only = yes
  path = /media
  acl allow execute always = True



after update your smb.conf file restart the service, it, now the client will be able to execute those .exe file in the directory.

$ sudo /etc/init.d/smbd restart 


No comments:

Post a Comment