To make things easy I’ve set up a SMB share on my ZFS pool with guest access so I don’t need logins to access the share.

Heres how to set it up.

root@alba:~# zfs get sharesmb
root@alba:~# zfs get sharesmb lomond/share
NAME                  PROPERTY  VALUE     SOURCE
lomond/share  sharesmb  -         -
root@alba:~# zfs set sharesmb=on lomond/share
root@alba:~# zfs share lomond/share
root@alba:~# zfs get sharesmb lomond/share
NAME          PROPERTY  VALUE     SOURCE
lomond/share  sharesmb  on        local

To enable guest access navigate to

/var/lib/samba/usershares

There will be a file with the name of the share you created, in this case: lomond/share

Change the guest_ok=n to guest_ok=y

root@alba:/var/lib/samba/usershares# cat lomond_share
#VERSION 2
path=/lomond/share
comment=Comment: /lomond/share
usershare_acl=S-1-1-0:F
guest_ok=y
sharename=lomond_share