Skip to content

Instantly share code, notes, and snippets.

@leopd
Created January 25, 2021 23:58
Show Gist options
  • Select an option

  • Save leopd/b867e4952476c8a3795dc7937c19fe6d to your computer and use it in GitHub Desktop.

Select an option

Save leopd/b867e4952476c8a3795dc7937c19fe6d to your computer and use it in GitHub Desktop.
Delegating all permissions to myself on zfs
sudo zfs allow -s @allperm allow,clone,create,destroy,mount,promote,receive,rename,rollback,send,share,snapshot rustinside
sudo zfs allow leo @allperm rustinside
@majick
Copy link

majick commented Aug 24, 2025

due to being ancient, this does not grant all modern capabilities. Instead:

sudo zfs allow -s @allperm allow,bookmark,clone,create,destroy, \
  diff,hold,load-key,change-key,mount,promote,receive,release, \
  rename,rollback,send,share,snapshot <zpool name>

# Example: All users in sudo group
sudo zfs allow -g sudo @allperm <zpool name>

### or -u username:
sudo zfs allow -u dave @allperm <zpool name>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment