Can't execute from shared folders

  • While using Win10, I'm trying to run .exe files from folders shared with SMB/CIFS, but I keep getting this kind of error:


    Wherever I look in OMV control panel I can only find the configuration of read/write permissions. I have 2 user accounts in OMV and basically want them to do whatever they want with those shares. How can I do that?

  • Data drives are mounted with "noexec" option. You can check if it is working when you mount it with "exec". There are some threads about this how to do it.

    EDIT: as ananas mentioned "noexec" does not prevent to execute exe on smb shares.

    RE: Installation and Setup Videos - Beginning, Intermediate and Advanced


  • macom thank you for your reply.

    I've followed the instructions from TDL's video (removed the noexec attribute, saved, rebooted), deleted all shared folders from SMB/CIFS and "Shared folders", then shared them again, but the problem remains.

    Following additional checks from the second link here's what i got:

    1. /etc/openmediavault/config.xml

    2. /etc/fstab

    3. cat /proc/mounts

    In the last part there's an 'rw' attribute in these lines:

    /dev/sda1 /srv/dev-disk-by-label-3tb ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user, 0 0
    /dev/sdc1 /srv/dev-disk-by-label-1tb ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user, 0 0

    Could this be the problem? Any other ideas?

  • Is the executable bit set on file system level?

    How do I do that? (I'm fairly new to linux systems).


    Meanwhile, I followed the guide from one of your previous links and i added the line


    to /etc/default/openmediavault, so now when I mount my ext4 drives, there's no 'noexec' attribute by deafault. The problem is still there.


    Another thought. Could the problem be that OMV overrides access rights to R/W only when you set up a folder to share?

  • Thank you for those links. With their help I have executed the following commands:

    chown -R root: /srv/dev-disk-by-label-1tb
    chown -R root: /srv/dev-disk-by-label-3tb
    chgrp root /srv/dev-disk-by-label-1tb
    chgrp root /srv/dev-disk-by-label-3tb
    chmod -R 777 /srv/dev-disk-by-label-1tb
    chmod -R 777 /srv/dev-disk-by-label-3tb

    Looking back, 'chown' and 'chgrp' weren't really needed as I've set all files' permissions to rwx (777) anyway.

    However, this doesn't solve the problem with the newly added files, as they get the default permissions.

    root@SERVER:~# ls -l /srv/dev-disk-by-label-3tb/Stuff/qsfv.exe
    -rw-rw-r-- 1 DESKTOP users 372736 Jul 6 18:50 /srv/dev-disk-by-label-3tb/Stuff/qsfv.exe

    Having read your links and a bunch of other stuff on the topic of umask and default permissions, I got a bit confused how to permanently change them to rwx for my 2 folders. What would the solution for OMV be?

  • I've set all files' permissions to rwx (777) anyway.

    No the best idea for security reasons.

    You can use the resetperms plugin to reset it to the original permissions.

    Then set permissions for those files you need it, e.g.

    chmod 770 /srv/dev-disk-by-label-3tb/Stuff/qsfv.exe

  • But then, if I understand it correctly, I'll need to run this command every time I add any new files as the default permissions is set to "-rw-rw-r--". I need a permanent solution for all the files added to my 2 ext4 hdd's. I want all of those files to be fully readable/writable/executable for 2 OMV users who have access to SMB/CIFS shared folders (no guests allowed though) and also not to have any writing/execution problems with those files if I transfer them to another computer.

  • Please stop posting such nonsense !

    Windows can of course execute files on a CIFS Share.

    The "noxexec" options in /etc/fstab (or in a mount command) only affects the local linux system that has the file system mounted.

    Yes, my mistake. Found this out on my system. However it seems to be not that obvious as I did not find a documentation for this in the web. Only trial and error approach as I did. Maybe you can point me in the right direction.

    Based on the tests on my system the executable bit is necessary on a ext4 smb share. Seems to be also confirmed by OP.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!