Nested Folders - single share and ACLs

  • Hi,


    At the request of the moderator creating a new thread continuing the line of this one: Nested shared folders


    I have a similar question in regards to how ACLs work with multiple shared folders but only the parent folder actually configure to be offered over SAMBA. It was the last question asked by gtsitouridis' last post on that thread.


    Essentially, in essence, I am curious how does the "Inherit ACLs" checkbox work.


    Lets say I have 4 shared folders created all with different ACLs and setup as per below

    Folder 1: GPS/

    Folder 2: GPS/Data

    Folder 3: GPS/Temp

    Folder 4: GPS/Temp/User


    If I only SAMBA share the parent folder e.g. GPS/, and the checkbox "Inherit ACLs" is checked, do any new files/folders created by users within each subfolder down (nested folders) inherit the Global Parent Samba Shared folder ACLs (GPS/) or only the next parent folder above it?


    E.g. If a user makes a folder in the GPS/Temp/User directory called "trip" will this folder inherit the ACLs associated with "GPS/Temp/User" or the "GPS/" folder's ACLs?


    I ask this as the checkbox option is only referred to in the settings of the parent SAMBA shared "GPS/" folder and am unsure if it is a global tick box setting that is static by nature (only copies the GPS/ folders ACLs to all other folders) or if it is dynamic in the way it is implemented for nested shares (copies different ACLs based on the one above parent folder).


    Appreciate the support.

  • Hi all,


    Just an update for anyone in the future if they wanted to know.


    So I just tested it and confirmed with the getfacl command that indeed the implementation of the "Inherit ACLs" Checkbox is dynamic in nature and only refers to the immediate parent directory (a.k.a the one immediately above it) and not the Global Parent Samba Shared folder (e.g. GPS/ mentioned above)


    That suits our needs and impressed with the implementation of OMV.


    Thanks.

  • crashtest

    Approved the thread.
  • This is an old thread, but how were you able to achieve nested folders with acl access. Im working on a situation like this.

    Parent folder(DataNas):


    Subfolders:

    Media:

    Documents:

    ETC:


    User A has access to all subdirectories, read/write

    User B has only read access to media

    User C has only read/write access to etc.


    So to start, you would create one parent folder in the shared folders.

    DataNas/

    Then add another shared folder, where relative path is parent

    DataNas/Media

    Another shared folder under that called

    DataNas/Documents?


    So under the shared folders settings we will see 3 folders correct?

    DataNas

    DataNas/Media

    DataNas/Documents

    Thanks.

Participate now!

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