New user home dir permissions

pan.peter

Cadet
Joined
Jul 16, 2021
Messages
5
Hello

I know my way around GNU+Linux but I'm very new to TrueNAS. I'm currently testing and trying to find the right config before commiting to migrating to TrueNAS.

I have a dataset with a very specific ACL which cannot be achieved with standard linux permissions. As it happens this dataset is the home-dir dataset for SMB and NFS users. And with TrueNAS nifty feature of automatic home-dir creation, it creates a new home-dir in that dataset, when I create a new user via GUI.

My problem now is that when this home-dir is created, the ACL is not inherited and I need to reapply the ACL recursively.

I see three possible solutions:

1: Cronjob which sets the desired ACL recursively periodically
Not my preferred solution, but viable.
2: Elaborate script with APIv2 calls to create a new user and sets it's home-dir ACL correctly
Also not very preferable because I have to invest a lot of time, although I would learn a lot about TrueNAS.
3: There is a feature I don't know about, which on user home-dir creation let's me set an ACL instead of a standard linux permission set
This would be my preferred solution.

I'm very thankful for any help.
 
Top