ZFS-SHARE(8) System Manager's Manual ZFS-SHARE(8)

# [NAME](#NAME)

`zfs-share` — share and unshare ZFS filesystems

# [SYNOPSIS](#SYNOPSIS)

`zfs` `share` \[`-l`] `-a`|`filesystem`

`zfs` `unshare` `-a`|`filesystem`|`mountpoint`

# [DESCRIPTION](#DESCRIPTION)

`zfs` `share` \[`-l`] `-a`|`filesystem`

Shares available ZFS file systems.

[`-l`](#l)

Load keys for encrypted filesystems as they are being mounted. This is equivalent to executing `zfs` `load-key` on each encryption root before mounting it. Note that if a filesystem has [**keylocation**](#keylocation)=[**prompt**](#prompt), this will cause the terminal to interactively block after asking for the key.

[`-a`](#a)

Share all available ZFS file systems. Invoked automatically as part of the boot process.

`filesystem`

Share the specified filesystem according to the **sharenfs** and **sharesmb** properties. File systems are shared when the **sharenfs** or **sharesmb** property is set.

`zfs` `unshare` `-a`|`filesystem`|`mountpoint`

Unshares currently shared ZFS file systems.

[`-a`](#a~2)

Unshare all available ZFS file systems. Invoked automatically as part of the shutdown process.

`filesystem`|`mountpoint`

Unshare the specified filesystem. The command can also be given a path to a ZFS file system shared on the system.

# [SEE ALSO](#SEE_ALSO)

[exports(5)](/man/os/zfs/exports.5), [smb.conf(5)](/man/os/zfs/smb.conf.5), [zfsprops(7)](/man/os/zfs/zfsprops.7)

July 11, 2022 OpenZFS

---

Document: zfs-share(8) from zfs 2.4.4-r3 (Chainguard OS)
Source: https://github.com/openzfs/zfs
