Execute a .exe on a samba share

38,131

Solution 1

This behavior because of a security policy of the modern Samba. Fix by adding this line to your /etc/samba/smb.conf:

acl allow execute always = True

Source: Samba's Wiki.

Solution 2

For me it worked by just adding the executable tag to the file.

chmod +x file.exe
Share:
38,131

Related videos on Youtube

jojo_bacon
Author by

jojo_bacon

Updated on September 18, 2022

Comments

  • jojo_bacon
    jojo_bacon almost 2 years

    I have a linux machine and a windows machine, the linux machine has a samba share with a .exe file on it. I can read and write files from the windows machine to the samba share, but I cannot execute the .exe file. How can I setup samba to allow me to execute it?

    • Jason C
      Jason C over 9 years
      Can you list the other files in the \\CUBE-SERVER\share\xowa directory on Windows? Can you read and write files in that directory?
    • jojo_bacon
      jojo_bacon over 9 years
      The files are a bin folder, a user folder, a licence file, xowa.gfs, xowa_64.exe, xowa_build.gfs, xowa_build_windows_64, and xowa_windows_64.jar. I can read a write files to the directory, I tested this by making a txt file, typing in it, saving it, then reading it.
    • wurtel
      wurtel over 9 years
      It may be a windows policy thing. (That's just about the extent of my windows knowledge :)
  • Andrew Olney
    Andrew Olney about 6 years
    This solved a problem for me running VS2017 on a Windows 10 vm where the solution was on a Linux mapped network drive.
  • Ḿr ḾǻgȊc
    Ḿr ḾǻgȊc about 6 years
    Is there any more granular way, to say make only certain filetypes executable, like exe, bat, and msi?