ZFS-ALLOW(8)
π zfs-allow β the manual page, but make it cute π
ok so this is ZFS-ALLOW(8) from the System Manager's Manual, and bestie, it's literally about giving your unprivileged friends admin powers over ZFS. delegation but make it β¨secureβ¨.
β¨ NAME β¨
zfs-allow β delegate ZFS administration permissions to unprivileged users π«Ά
like, you don't have to be root-root to run ZFS things anymore?? iconic behaviour honestly π
π SYNOPSIS π
ok so here's the whole vibe, all the ways you can call it. copy these exactly bestie, no typos, the shell is judging you π§
give somebody powers:
zfs allow [-dglu] user|group[,user|group]β¦ perm|@setname[,perm|@setname]β¦ filesystem|volume
give everybody powers (yes, everyone, we'll talk):
zfs allow [-dl] -e|everyone perm|@setname[,perm|@setname]β¦ filesystem|volume
make a whole permission set, create style:
zfs allow -c perm|@setname[,perm|@setname]β¦ filesystem|volume
define a named set, so you can reuse the vibe later:
zfs allow -s @setname perm|@setname[,perm|@setname]β¦ filesystem|volume
and now the taketh-away versions, unallow, the β¨anti-allowβ¨:
zfs unallow [-dglru] user|group[,user|group]β¦ [perm|@setname[,perm|@setname]β¦] filesystem|volume
take it back from everyone:
zfs unallow [-dlr] -e|everyone [perm|@setname[,perm|@setname]β¦] filesystem|volume
wipe out the permission set you created earlier:
zfs unallow [-r] -c [perm|@setname[,perm|@setname]β¦] filesystem|volume
yeet a named set into the void:
zfs unallow [-r] -s @setname [perm|@setname[,perm|@setname]β¦] filesystem|volume
not me noticingunallowhas-uand-gand-land-rand-d, while plainallowis rocking-dgluβ¦ the letters are doing something, we'll get to every single one, don't worry π
ok and that's where part 1 ends β the flags, the perms, the sets, all of it? coming right up π
πΈ DESCRIPTION πΈ
Okay bestie, welcome to the allow section, this is where it all pops off π
π«Ά zfs allow filesystem|volume
zfs allow filesystem|volume
This one just shows you the permissions that have been delegated on the filesystem or volume you point at. That's it, that's the vibe β pure reading. Peep the other forms of zfs allow for the juicy stuff β¨
Real talk though: delegations on Linux work except formount,unmount,mountpoint,canmount,rename, andshare. Those ones straight-up cannot be delegated, because the Linuxmount(8)command restricts modifications of the global namespace to the root user. Not us. Not ever. It's giving gatekept π
π
zfs allow [-dglu] user|group[,user|group]β¦ perm|@setname[,perm|@setname]β¦ filesystem|volume
zfs allow [-dglu] user|group[,user|group]β¦ perm|@setname[,perm|@setname]β¦ filesystem|volume
π¦ zfs allow [-dl] -e|everyone perm|@setname[,perm|@setname]β¦ filesystem|volume
zfs allow [-dl] -e|everyone perm|@setname[,perm|@setname]β¦ filesystem|volume
This is the moment β it delegates ZFS administration permission for the file systems to non-privileged users. Handing out the aux cord, fr fr π
Here's the option lineup:
-dβ Allow only for the descendent file systems.-e|everyoneβ Specifies that the permissions be delegated to everyone.-ggroup[,group]β¦ β Explicitly specify that permissions are delegated to the group.-lβ Allow "locally" only for the specified file system.-uuser[,user]β¦ β Explicitly specify that permissions are delegated to the user.
And the arguments, bestie:
- user|group[,user|group]β¦ β Specifies to whom the permissions are delegated. Multiple entities can be specified as a comma-separated list. If neither of the
-guoptions are specified, then the argument is interpreted preferentially as the keywordeveryone, then as a user name, and lastly as a group name. To specify a user or group named "everyone", use the-gor-uoptions. To specify a group with the same name as a user, use the-goptions. - perm|
@setname[,perm|@setname]β¦ β The permissions to delegate. Multiple permissions may be specified as a comma-separated list. Permission names are the same as ZFS subcommand and property names. See the property list below. Property set names, which begin with@, may be specified. See the-sform below for details.
If neither of the -dl options are specified, or both are, then the permissions are allowed for the file system or volume, and all of its descendants. Like, the whole bloodline gets it π§¬
Permissions are generally the ability to use a ZFS subcommand or change a ZFS property. The following permissions are available β and yes, I'm listing every single one, no skipping, we are thorough in this house π
β the subcommand girlies β
allowβ Must also have the permission that is being allowedbookmarkβ (no extra notes)cloneβ Must also have the create ability and mount ability in the origin file systemcreateβ Must also have the mount ability. Must also have the refreservation ability to create a non-sparse volume.destroyβ Must also have the mount abilitydiffβ Allows lookup of paths within a dataset given an object number, and the ability to create snapshots necessary tozfs diff.holdβ Allows adding a user hold to a snapshotload-keyβ Allows loading and unloading of encryption key (seezfs load-keyandzfs unload-key).change-keyβ Allows changing an encryption key viazfs change-key.mountβ Allows mounting/unmounting ZFS datasetspromoteβ Must also have the mount and promote ability in the origin file systemreceiveβ Must also have the mount and create ability, required forzfs receive -F(see alsoreceive:appendfor limited, non forced receive)releaseβ Allows releasing a user hold which might destroy the snapshotrenameβ Must also have the mount and create ability in the new parentrollbackβ Must also have the mount abilitysendβ Allows sending a replication stream of a dataset.send:rawβ Only allows sending raw replication streams, preventing encrypted datasets being sent in decrypted form.send:encryptedβ Only allows sending raw replication streams of encrypted datasets, preventing encrypted datasets being sent in decrypted form and preventing decrypted datasets being sent at all.shareβ Allows sharing file systems over NFS or SMB protocolssnapshotβ Must also have the mount ability
π the other icons π
receive:appendβ Must also have the mount and create ability, limited receive ability (can not doreceive -F)groupquotaβ Allows accessing anygroupquota@β¦ propertygroupobjquotaβ Allows accessing anygroupobjquota@β¦ propertygroupusedβ Allows reading anygroupused@β¦ propertygroupobjusedβ Allows reading anygroupobjused@β¦ propertyuserpropβ Allows changing any user propertyuserquotaβ Allows accessing anyuserquota@β¦ propertyuserobjquotaβ Allows accessing anyuserobjquota@β¦ propertyuserusedβ Allows reading anyuserused@β¦ propertyuserobjusedβ Allows reading anyuserobjused@β¦ propertyprojectobjquotaβ Allows accessing anyprojectobjquota@β¦ propertyprojectquotaβ Allows accessing anyprojectquota@β¦ propertyprojectobjusedβ Allows reading anyprojectobjused@β¦ propertyprojectusedβ Allows reading anyprojectused@β¦ property
π the property legends π
aclinheritaclmodeacltypeatimecanmountcasesensitivitychecksumcompressioncontextcopiesdedupdefcontextdevicesdnodesizeencryptionexecfilesystem_limitfscontextkeyformatkeylocationlogbiasmlslabelmountpointnbmandnormalizationoverlaypbkdf2itersprimarycachequotareadonlyrecordsizeredundant_metadatarefquotarefreservationrelatimereservationrootcontextsecondarycachesetuidsharenfssharesmbsnapdevsnapdirsnapshot_limitspecial_small_blockssyncutf8onlyversionvolblocksizevolmodevolsizevscanxattrzoned
β¨ zfs allow -c perm|@setname[,perm|@setname]β¦ filesystem|volume
zfs allow -c perm|@setname[,perm|@setname]β¦ filesystem|volume
Sets "create time" permissions. These permissions are granted (locally) to the creator of any newly-created descendent file system. So whoever makes the baby dataset gets the keys π
π zfs allow -s @setname perm|@setname[,perm|@setname]β¦ filesystem|volume
zfs allow -s @setname perm|@setname[,perm|@setname]β¦ filesystem|volume
Defines or adds permissions to a permission set. The set can be used by other zfs allow commands for the specified file system and its descendants. Sets are evaluated dynamically, so changes to a set are immediately reflected β instant glow-up, no reboot π«
Permission sets follow the same naming restrictions as ZFS file systems, but the name must begin with @, and can be no more than 64 characters long. Sixty-four. Count it.
π zfs unallow [-dglru] user|group[,user|group]β¦ [perm|@setname[,perm|@setname]β¦] filesystem|volume
zfs unallow [-dglru] user|group[,user|group]β¦ [perm|@setname[,perm|@setname]β¦] filesystem|volume
π zfs unallow [-dlr] -e|everyone [perm|@setname[,perm|@setname]β¦] filesystem|volume
zfs unallow [-dlr] -e|everyone [perm|@setname[,perm|@setname]β¦] filesystem|volume
π zfs unallow [-r] -c [perm|@setname[,perm|@setname]β¦] filesystem|volume
zfs unallow [-r] -c [perm|@setname[,perm|@setname]β¦] filesystem|volume
Removes permissions that were granted with the zfs allow command. No permissions are explicitly denied, so other permissions granted are still in effect. For example, if the permission is granted by an ancestor. If no permissions are specified, then all permissions for the specified user, group, or everyone are removed.
Specifying everyone (or using the -e option) only removes the permissions that were granted to everyone, not all permissions for every user and group. See the zfs allow command for a description of the -ldugec options.
-rβ Recursively remove the permissions from this file system and all descendants.
π§ zfs unallow [-r] -s @setname [perm|@setname[,perm|@setname]β¦] filesystem|volume
zfs unallow [-r] -s @setname [perm|@setname[,perm|@setname]β¦] filesystem|volume
Removes permissions from a permission set. If no permissions are specified, then all permissions are removed, thus removing the set entirely. Gone. Deleted. Not me crying over a permission set π
β¨ EXAMPLES β¨
Okay bestie, this is the part where it all comes together π theory is cute but watching it actually happen?? iconic. Let's go through them one by one, no skips.
πΈ Example 1: Delegating ZFS Administration Permissions on a ZFS Dataset
So the vibe here is: we want user cindys to be able to create, destroy, mount, and take snapshots on tank/cindys β and literally nothing else. Slay. Here's how you'd grant that, and how you'd peek at what tank/cindys is currently serving:
# zfs allow cindys create,destroy,mount,snapshot tank/cindys
# zfs allow tank/cindys
---- Permissions on tank/cindys --------------------------------------
Local+Descendent permissions:
user cindys create,destroy,mount,snapshot
Look at her, all delegated and demure π
BUT β plot twist π β the tank/cindys mount point permission is set to 755 by default, which means poor cindys will be unable to mount file systems under tank/cindys. Rude. So you gotta add an ACE using syntax like this to hand over the mount point access:
# chmod A+user:cindys:add_subdirectory:allow /tank/cindys
π Example 2: Delegating Create Time Permissions on a ZFS Dataset
Now we're granting β¨create timeβ¨ permissions. The goal: let anyone in the group staff create file systems inside tank/users. And the cute part? This syntax also lets staff members destroy their own file systems β but not anyone else's. Boundaries, we love that π«Ά
# zfs allow staff create,mount tank/users
# zfs allow -c destroy tank/users
# zfs allow tank/users
---- Permissions on tank/users ---------------------------------------
Permission sets:
destroy
Local+Descendent permissions:
group staff create,mount
See how destroy shows up under Permission sets? That's the -c doing her thing, bestie. She's a create-time permission, not a regular one. iykyk.
π Example 3: Defining and Granting a Permission Set on a ZFS Dataset
Permission sets!! This is where you bundle a bunch of permissions together and give them a little name badge so you can hand them out like friendship bracelets π¦ Here's defining and granting one on the tank/users file system:
# zfs allow -s @pset create,destroy,snapshot,mount tank/users
# zfs allow staff @pset tank/users
# zfs allow tank/users
---- Permissions on tank/users ---------------------------------------
Permission sets:
@pset create,destroy,mount,snapshot
Local+Descendent permissions:
group staff @pset
Name your set @pset, tag it in once, and the whole group gets the bundle. Efficiency queen π
π Example 4: Delegating Property Permissions on a ZFS Dataset
Property permissions time! This one grants the ability to set quotas and reservations on the users/home file system. Watch how cindys can then do her thing without needing anyone's help:
# zfs allow cindys quota,reservation users/home
# zfs allow users/home
---- Permissions on users/home ---------------------------------------
Local+Descendent permissions:
user cindys quota,reservation
cindys% zfs set quota=10G users/home/marks
cindys% zfs get quota users/home/marks
NAME PROPERTY VALUE SOURCE
users/home/marks quota 10G local
Not the cindys% prompt changing mid-example to show you she's now acting as herself, no root, no drama ππ
literally the whole point of delegation.
π Example 5: Removing ZFS Delegated Permissions on a ZFS Dataset
Okay and sometimes you gotta take the permission back π Here's removing the snapshot permission from the staff group on the tank/users file system:
# zfs unallow staff snapshot tank/users
# zfs allow tank/users
---- Permissions on tank/users ---------------------------------------
Permission sets:
@pset create,destroy,mount,snapshot
Local+Descendent permissions:
group staff @pset
Notice how the @pset permission set is still sitting there, untouched and unbothered π β only staff's direct snapshot grant got yoinked. zfs unallow is surgical like that. Periodt.
And that's a wrap on ZFS-ALLOW(8), bestie π you just read the whole thing, your brain is huge, your delegation game is unstoppable. This page comes to you from OpenZFS, dated June 14, 2026, and it lives in section 8 of the manual where all the sysadmin magic happens. Now go hand out permissions responsibly, ok? mwah πΈβ¨
π¦ where this page comes from
- alpine 3.23: zfs-doc 2.4.4-r0 Β· CDDL-1.0
- alpine 3.24: zfs-doc 2.4.4-r0 Β· CDDL-1.0
- nixos 26.05: zfs-user 2.4.4
- nixpkgs unstable: zfs-user 2.4.4
- ubuntu stonking: zfsutils-linux 2.4.4-1ubuntu4 Β· CDDL-1.0
- π the page's license: CDDL-1.0
- Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved
- Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
- Copyright (c) 2011, 2019 by Delphix. All rights reserved
- Copyright (c) 2013 by Saso Kiselkov. All rights reserved
- Copyright (c) 2014, Joyent, Inc. All rights reserved
- Copyright (c) 2014 by Adam Stevko. All rights reserved
- Copyright (c) 2014 Integros [integros.com]
- Copyright 2019 Richard Laager. All rights reserved
- Copyright 2018 Nexenta Systems, Inc
- Copyright 2019 Joyent, Inc
- Copyright (c) 2026, TrueNAS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms