Quick setup of ZFS encrytped datasets with sane permissions
Oct 6, 2022 - ⧖ 1 minAssuming you have a pool called tank
...
And assuming you have an encrypted dataset (See Jim Saltar's short intro)
- Create a group for permissions - in my case I have one called
home
- Then if there's anything in
/tank/encrypted
his it withchgrp -R home /tank/encrypted
to give thehome
group ownership - Next we need to make sure that the members of
home
can do the writing... sochmod 775 -R /tank/encrypted
will do the trick - Finally we want to make sure that all data created inside our dataset has
the same set of permissions with
chmod g+s /tank/encrypted
andchmod g+w /tank/encrypted