1
1
I have a folder, /srv/share
, which I'd like to share between a few users who share a non-primary group (share
). I'd like to force that any file and/or directory moved or created into /srv/share
are owned by the share
group. I'm using FreeBSD 11 and the share is on a ZFS volume.
As of now, this almost works - I'm using setgid
on the folder (which is already owned by share
), and if I create a subdirectory it is owned by the correct group. However, if an application running as a user who is member of the share
group moves files in a directory into /srv/share
, the files are owned by the application user's group.
How should I setup this? I'm lost and two evenings of googling has given me almost nothing.
Why do you need to force group ownership if you can directly grant it access via ACLs? – user1686 – 2016-12-28T21:20:04.513
The volume is shared over network and it makes it easier to setup accounts, at least from what I've learned so far. – monotux – 2016-12-28T21:24:17.297