Force dataset to make newly created files/datasets owned by the group

On the old forum I found this question from half a year ago:
Force dataset to make newly created files/datasets owned by the group.
Unfortunately this question stayed unanswered.
I thought this was a relevant question and can think of no better wording. How can I achieve this, preferably via gui?

I think configuring and checking these options under right-click>Dataset>Edit Permissions does what you want. Select the Owner and the Group from the dropdown.

For existing datasets, you need to check Apply Recursively under Advanced at the bottom. Think twice before doing this on an existing dataset!

Further information here:

The question is ambiguous. Datasets will always be owned by root:root when they are created, but this isn’t a common action.

Owning group of files created in a dataset depend on the dataset’s configuration:

  • NFSv4 ACL type has FreeBSD-style gid inheritance. Newly-created files have the owning gid st_gid of the parent directory

  • POSIX ACL type has Linux style gid behavior. Newly created files have st_gid from the gid of the process creating the file.

1 Like