ZFS ZFS allow sharenfs

Hey guys,

I want to create a ZFS dataset with a user other then root. I run the following zfs allow command:
zfs allow username destroy,clone,create,mount,share,sharenfs dataset

When I run the following command as root I've got no problems:
zfs create dataset

The dataset is created and I can browse/write over NFS (/etc/zfs/exports is updated)

When I run the command as the user i get the following:
Code:
share(1M) failed
filesystem successfully created, but not shared

The dataset is created but I can't browse/write over NFS (Input/Output error), /etc/zfs/exports is not updated.

What do I have to do to give the user the right permissions?
Hope you can help me out.
 
I don't think that's possible on FreeBSD. The way it works on Solaris is that it connects to a kernel function that does the actual adding/removing of shares. On FreeBSD it's pretty much crowbarred into the existing NFS solution. It simply adds lines to /etc/zfs/exports and reloads nfsd(8). A 'normal' user just doesn't have the permissions to do that.
 
Back
Top