Usually a lurker.
Maybe I should’ve just shut up and thought for a bit longer before writing that comment…

If you want to talk to me elsewhere, you know how to reach me.

  • 3 Posts
  • 852 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle












  • Yeah. You need two commands if you want both a default and regular ACL entry.

    You want a default ACL entry and a regular ACL entry on data.

    The regular ACL entry affects items directly inside data.

    The default ACL entry causes items that you create inside data to have that ACL. It doesn’t both do that and act as a regular ACL entry for data.

    I think that’s the magic spell.

    So assuming I didn’t want to set the regular ACL and the default ACL I would need to set the ACL not on /srv/disk-uid/media/data but instead on /srv/disk-uid/media/ and would achieve essentially the same result?

    Though like I said, I’ve done virtually nothing with Posix ACLs in the past, so that’s from a brief glance at the docs and a quick test.

    I would say this really doesn’t matter that much. I assume you are using linux way longer and more intensely than me and experience will help with reading the docs. I tried the same but the manpage is a bit difficult to read for me and the guides, forum posts etc. are sometimes over 10 years old and/or doesn’t apply to my goal (or my search-fu failed me).
    Classic example of someone from 10 years ago: https://www.linuxquestions.org/questions/linux-newbie-8/acl-vs-default-acl-4175478547/

    And sometimes you just need a colleague or rubber duck to help you get out of a mind spiral :D

    Again: Thank you very much. If you have a paypal adress and willing to pm it to me I’d like to tip you. Because unlike on Reddit, Lemmy is actually helpful.
    If you don’t prefer that, maybe a OSS-project I can send it to? :)


  • sudo setfacl -m g:extUserG:rwx data

    THANK YOU for solving the issue.
    Can you tell me what went wrong during setting the acl the first time?
    Because if my memory serves me right (it was well beyond 11pm) that’s the command I had typed in.
    I believe it was /srv/dev-disk-by-uuid-e3e0eac5-806a-44e9-a0e9-07fb99a18281/media# sudo setfacl -d -m g:extUserG:rwx data

    Also why do I need both default:group:extUserG:rwx and group:extUserG:rwx to be able to write in the media/data directory? Shouldn’t the first one be sufficient enough?


  • Thank you for responding and helping!

    # tree:
    ├── dev-disk-by-uuid-e3e0eac5-806a-44e9-a0e9-07fb99a18281
    │   └── media
    │       └── data
    │           ├── media
    │           ├── recycle_bin
    │           ├── test
    │           ├── torrents
    │           └── usenet
    

    I assume you mean the actual media directory in level 3 on the tree?

    /srv/dev-disk-by-uuid-e3e0eac5-806a-44e9-a0e9-07fb99a18281/media/data# getfacl media/
    # file: media/
    # owner: mediaU
    # group: serviceG
    # flags: -s-
    user::rwx
    group::rwx
    group:extUserG:rwx
    mask::rwx
    other::r-x
    default:user::rwx
    default:group::rwx
    default:group:extUserG:rwx
    default:mask::rwx
    default:other::r-x
    

    Just in case the data folder in level 2 as well:

    /srv/dev-disk-by-uuid-e3e0eac5-806a-44e9-a0e9-07fb99a18281/media# getfacl data/
    # file: data/
    # owner: mediaU
    # group: serviceG
    # flags: -s-
    user::rwx
    group::rwx
    other::r-x
    default:user::rwx
    default:group::rwx
    default:group:extUserG:rwx
    default:mask::rwx
    default:other::r-x