ACLs are set when creating shared folder

  • Hello.


    Can anyone confirm this is a bug or unwanted behavior? At least this took me a very long time to find out.


    When creating a shared folder, and giving using a path where parent directories so not exist yet, OMV creates the directories for me. However, the permissions for the "additional" directories are wrong. They contain ACL with very strange settings.


    Example: create a shared folder via GUI, with this path:

    /this/is/a/test

    (none of these folders shall exist)

    the created folders have these permissions:

    thisdrwx--x---+
    isdrwx--x---+
    adrwx--x---+
    testdrwxrwsr-x


    Following ACL are set:

    Code
    root@homeserver:/srv/dev-disk-by-uuid-b75aa0c3-07c9-4d73-ba16-5870d28ae99e# getfacl this
    # file: this
    # owner: root
    # group: root
    user::rwx
    group::---
    group:users:--x
    mask::--x
    other::---
    • Official Post

    Seems like a bug to me but not sure what Volker intended here. It is running setfacl if the path has more than one directory
    https://github.com/openmediava…ed/rpc/sharemgmt.inc#L450

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    What do you suggest? Would you like me to open a bug to clairfy this?

    I think that is a good idea.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

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