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.