Hi everyone,
I'm very confused about file permissions on my NAS. I have set up a Pi4 as a NAS with RaspiOS lite running OMV and nextcloud via docker. I copied data form an old NAS. I configured four users in OMV:
- Matt and Kris (for me and my wife)
- appuser (used by docker containers)
- Nextcloud (which was intended solely for Nextcloud but isn't used).
All users are in the users group.
There are two directories Matt/ and Kris/ and in OMV I granted Read/Write access only to the corresponding user as well as to appuser so I can access those directories via nextcloud. I also made both directories available via SMB and access with my user (Matt) works fine.
Now this is where my confusion begins: my wife's user (Kris) can't access her directory via SMB, but if I give Read/Write access to user Matt, i can access my wife's directory.
I checked the permissions and found ACL attributes on Kris/ which I removed and I also changed them so they are equal to Matt/:
ls -ld Kris/
drwxrwsr-x 7 root users 4096 Jan 13 13:13 Kris/
ls -ld Matt/
drwxrwsr-x 5 root users 4096 Jan 13 13:11 Matt/
My confusion carries on: when I create a directory with nextcloud, I can't write in those directories via SMB, even if I change the owner from appuser to Matt or Kris.
I would be very happy if anyone could help me out and point me in the right direction.