Written by J. Moellenkamp
Reading time: 1 minute
Even such venerable tools like
useradd could use some extra features. In a recent SRU an option was added to set a default how the home directory is created. You have three options.
- create is as a subdirectory
- create it as an own zfs filesystem for the user
- create it as an own zfs filesystem for the user and delegate the filesystem to the user.
Let’s try this out. When you chose yes, the home directory is created as it’s own home directory.
Now i create a user with this defaults:
There is an own zfs filesystem for the homedirectory of user
And if you check for the delegations, you will see that permissions have been passed to the user
Okay, now let’s try it with the setting
I create another user.
An own ZFS filesystem is still created.
However when checking for delegations, there will be none.
Okay. Last option to this setting.
no tells the system not to create an ZFS filesystem for the user.
Okay, yet another user.
There is no separate ZFS filesystem for this user.
Instead the home directory has just been created as a normal directory.
And of course there are no delegations because there is no ZFS filesystem for this user.