Unable to launch exe file from Samba Shared Drive.

  • Hi I'm on 6.5.2-1 (Shaitan) with a shared folder setup in OMV. Currently it works perfectly for read/write activities, but I wanted to run an installer of some software off of this samba shared folder, but it won't run. I get the security warning popup that I accept and click Run, but nothing comes up from that at all. I've tried the same on another windows computer with no luck.



    Below are screenshots of my settings in samba, what am I doing wrong here? The goal is to be able to launch an exe file on windows 11 from the samba shared drive folder that I'm connected to on my network. My workaround is to copy the exe file over onto my computer, then execute it from my computer and not my samba shared folder space.


  • The reason this happens is because OpenMediaVault inserts

    Code
    create mask = 0664
    force create mode = 0664
    directory mask = 0775
    force directory mode = 0775

    into every samba share you create with the webinterface without any notification it does this! 6 = read and write but not execute.


    You can check that yourself by looking at /etc/samba/smb.conf


    For every samba share there is an "extra options" field at the bottom of the webinterface. Insert

    Code
    create mask = 0774
    force create mode = 0774

    there and it will overwrite the values that OpenMediaVault put into the share. 7 = read, write and execute.


    This works for me with windows 10. Maybe there is an additional setting in windows 11 to trust the samba server, but try this first.



    I really wish OpenMediaVault would tell the user it does this. Or add dedicated fields where you can view and set these values for every samba share.

    2 Mal editiert, zuletzt von redide ()

  • thanks for pointing this out. so I would just edit that conf file in nano and save? Do I have to stop or restart the samba service too? Thanks

  • thanks for pointing this out. so I would just edit that conf file in nano and save? Do I have to stop or restart the samba service too? Thanks

    Don't edit the conf file. OMV will change it back. In the OMV UI, go the the page where you set up the shares. Select the share and edit it. At the bottom of the share's property page there is an extra options portion where you insert those 774 lines. This will override the default settings that get put in the conf file.


    There a lot of other things that can be put in that section as well, such as forcing ownership of the share to a particular user or adjusting smb buffers and r/w modes, etc. Basivally nay settings that can normally be put in the conf file can be put here for per share settings or global settings can be put in the extra options on the samba server page to override the global section.


    There are also some global settings that can be set in OMV environment variables. The ones that can be set there are recommended to be set there, using the omv-env terminal command, but if you feel uncomfortable doing this in terminal, the global extra options can be used


    This is a list of those samba environment variables (some will already have settings, which can be seen with omv-env get or set with omv-env set).:


    OMV_SAMBA_AIOREADSIZE

    OMV_SAMBA_AIOWRITESIZE

    OMV_SAMBA_CREATEMASK

    OMV_SAMBA_DIRECTORYMASK

    OMV_SAMBA_DISABLESPOOLSS

    OMV_SAMBA_DNSPROXY

    OMV_SAMBA_FRUIT_AAPL

    OMV_SAMBA_FRUIT_MODEL

    OMV_SAMBA_GUESTACCOUNT

    OMV_SAMBA_HOMES_COMMENT

    OMV_SAMBA_HOMES_CREATEMASK

    OMV_SAMBA_HOMES_DFREECACHETIME

    OMV_SAMBA_HOMES_DFREECOMMAND

    OMV_SAMBA_HOMES_DIRECTORYMASK

    OMV_SAMBA_HOMES_FOLLOWSYMLINKS

    OMV_SAMBA_HOMES_FORCECREATEMODE

    OMV_SAMBA_HOMES_FORCEDIRECTORYMODE

    OMV_SAMBA_HOMES_HIDESPECIALFILES

    OMV_SAMBA_HOMES_RECYCLE_DIRECTORYMODE

    OMV_SAMBA_HOMES_RECYCLE_EXCLUDE

    OMV_SAMBA_HOMES_RECYCLE_EXCLUDEDIR

    OMV_SAMBA_HOMES_RECYCLE_KEEPTREE

    OMV_SAMBA_HOMES_RECYCLE_REPOSITORY

    OMV_SAMBA_HOMES_RECYCLE_SUBDIRMODE

    OMV_SAMBA_HOMES_RECYCLE_TOUCH

    OMV_SAMBA_HOMES_RECYCLE_TOUCH_MTIME

    OMV_SAMBA_HOMES_RECYCLE_VERSIONS

    OMV_SAMBA_HOMES_VALIDUSERS

    OMV_SAMBA_HOMES_VFSOBJECTS

    OMV_SAMBA_HOMES_WRITABLE

    OMV_SAMBA_LOADPRINTERS

    OMV_SAMBA_LOGFILE

    OMV_SAMBA_LOGGING

    OMV_SAMBA_MAPTOGUEST

    OMV_SAMBA_MAXLOGSIZE

    OMV_SAMBA_NMBD_ENABLE

    OMV_SAMBA_OBEYPAMRESTRICTIONS

    OMV_SAMBA_PAMPASSWORDCHANGE

    OMV_SAMBA_PANICACTION

    OMV_SAMBA_PASSDBBACKEND

    OMV_SAMBA_PASSWDCHAT

    OMV_SAMBA_PASSWDPROGRAM

    OMV_SAMBA_PRINTCAPNAME

    OMV_SAMBA_PRINTING

    OMV_SAMBA_SHARE_AUDIT_FACILITY

    OMV_SAMBA_SHARE_AUDIT_FAILURE

    OMV_SAMBA_SHARE_AUDIT_PREFIX

    OMV_SAMBA_SHARE_AUDIT_PRIORITY

    OMV_SAMBA_SHARE_AUDIT_SUCCESS

    OMV_SAMBA_SHARE_CREATEMASK

    OMV_SAMBA_SHARE_DFREECACHETIME

    OMV_SAMBA_SHARE_DFREECOMMAND

    OMV_SAMBA_SHARE_DIRECTORYMASK

    OMV_SAMBA_SHARE_FOLLOWSYMLINKS

    OMV_SAMBA_SHARE_FORCECREATEMODE

    OMV_SAMBA_SHARE_FORCEDIRECTORYMODE

    OMV_SAMBA_SHARE_FRUIT_COPYFILE

    OMV_SAMBA_SHARE_FRUIT_DELETEEMPTYADFILES

    OMV_SAMBA_SHARE_FRUIT_ENCODING

    OMV_SAMBA_SHARE_FRUIT_LOCKING

    OMV_SAMBA_SHARE_FRUIT_METADATA

    OMV_SAMBA_SHARE_FRUIT_NFSACES

    OMV_SAMBA_SHARE_FRUIT_RESOURCE

    OMV_SAMBA_SHARE_FRUIT_VETOAPPLEDOUBLE

    OMV_SAMBA_SHARE_FRUIT_WIPEINTENTIONALLYLEFTBLANKRFORK

    OMV_SAMBA_SHARE_HIDESPECIALFILES

    OMV_SAMBA_SHARE_PRINTABLE

    OMV_SAMBA_SHARE_RECYCLE_CRONSCRIPT_PREFIX

    OMV_SAMBA_SHARE_RECYCLE_DIRECTORYMODE

    OMV_SAMBA_SHARE_RECYCLE_EXCLUDE

    OMV_SAMBA_SHARE_RECYCLE_EXCLUDEDIR

    OMV_SAMBA_SHARE_RECYCLE_KEEPTREE

    OMV_SAMBA_SHARE_RECYCLE_REPOSITORY

    OMV_SAMBA_SHARE_RECYCLE_SUBDIRMODE

    OMV_SAMBA_SHARE_RECYCLE_TOUCH

    OMV_SAMBA_SHARE_RECYCLE_TOUCH_MTIME

    OMV_SAMBA_SHARE_RECYCLE_VERSIONS

    OMV_SAMBA_SHARE_SHADOW_SORT

    OMV_SAMBA_SHARE_VFSOBJECTS

    OMV_SAMBA_SOCKETOPTIONS

    OMV_SAMBA_UNIXEXTENSIONS

    OMV_SAMBA_UNIXPASSWORDSYNC

    OMV_SAMBA_WIDELINKS

    OMV_SAMBA_ZEROCONF_ENABLED

    OMV_SAMBA_ZEROCONF_NAME


    There are more environment viable for other things.

  • Don't edit the conf file. OMV will change it back. In the OMV UI, go the the page where you set up the shares. Select the share and edit it. At the bottom of the share's property page there is an extra options portion where you insert those 774 lines. This will override the default settings that get put in the conf file.

    I'm not seeing the bottom of the share's property page to enter extra stuff


    This is the page I'm on (w/ screenshot)

    Code
    https://omv.lan/#/storage/shared-folders/acl/mydrivelongstringtext

  • I'm not seeing the bottom of the share's property page to enter extra stuff


    This is the page I'm on (w/ screenshot)

    Code
    https://omv.lan/#/storage/shared-folders/acl/mydrivelongstringtext

    That's not the shares's property page, that is the permissions pages. Go to Services>SAMBA/CIFS>SHARES and edit the share, not the user permissions for the share.



    In OMV speak, a shared folder can be used for many things, not just a samba share. for some plugins you have to define a shared folder just for the plugin to get access to it. In this case we are talking samba problems, so it's the samba plugin that hold the samba specific settings. The shared folder page is the underlying linux settings.

  • vbarter

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!