Linux access rights not applied on SMB shares

  • Hello there.

    I'm using OMV for few days and had been able to create my shares and access them, but I have an issue with access rights/permissions.

    I basically have 2 shared folders :

    "Public", wich have 777 access rights and is set as "guest allowed" in samba
    "Shared" which have 770 access rights and is set as "not public" in samba.

    The problem is that when a user add a file to one of the shared folders (users are using windows), the file ends up with 664 permissions, regardless of the share.

    I also tried to use the "Permission" menu of OMV as well as ACL (even if I would prefer to only rely on the filesystem rights), but there is no options for r+w+x permissions. it is always only r+w

    The only thing I managed to do is overwritte the access rights using the bottom part of ACL menu , but I have to do it each time a file is added.. Not exactly smooth..


    What am missing ? Is there a way to only rely on filesystem permissions (and the samba "guest" option), and automaticaly overwritte the new file's access rights ?

    Thanks a lot !


    EDIT : I don't mind having to set it in "hard way" through config files or stuff, as soon as it would be stable enough, and new shares could be added without modifying this verry setting. The nas is actually at my dad's and I managed to get him to understand linux access rights for him to manage it, but modifying conf files through ssh would be too much asking

  • r4ph0u

    Hat das Label OMV 5.x hinzugefügt.
  • Yes, I have enabled both, but I think this doesn't help since I don't use permissions or ACL's, which doesn't allow the execution permission

    Thanks though

  • I'm a rookie at OVM / Samba. What environment variables are you referring to and what values do they need to be changed to? I think this is the same issue I'm experiencing. My Linux box will save a file to Samba, but it is saved with a write lock.

  • I'm a rookie at OVM / Samba. What environment variables are you referring to and what values do they need to be changed to? I think this is the same issue I'm experiencing. My Linux box will save a file to Samba, but it is saved with a write lock.

    See: Samba/CIFS File and Directory Creation Permissions

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

Jetzt mitmachen!

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