On 04/21/10 08:45 AM, Edward Ned Harvey wrote:
From: Mark Shellenbaum [mailto:mark.shellenb...@oracle.com]

You can create/destroy/rename snapshots via mkdir, rmdir, mv inside
the
.zfs/snapshot directory, however, it will only work if you're running
the
command locally.  It will not work from a NFS client.


It will work over NFS or SMB, but you will need to allow it via the
necessary delegated administration permissions.

Go on?
I tried it over NFS and it didn't work.  So ... what are the "necessary
permissions?"


Depends on what you want to do

If all you want is to allow a certain NFS/SMB user the ability to create snapshots then all you would need is something like this

# zfs allow <user> snapshot <dataset>

But if you want to let them delete snapshot then you would also need to give out destroy,mount.

# zfs allow <user> destroy,mount <dataset>

renaming will also require "create" permission.

I did it from a NFS client as root, where root maps to root.


If you aren't using delegation then the code will require PRIV_SYS_MOUNT and an NFS won't have that privilege.

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to