Note: You are viewing an old version of this page. View the current version.

Differences between version 2 and previous revision of KnowledgeBase/FreeBSD/ZfsDelegation.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 2 Last edited on Saturday, 24 August 2013 4:33:26 by CyberLeo Revert
Older page: version 1 Last edited on Sunday, 13 January 2013 2:40:45 by CyberLeo Revert
@@ -5,5 +5,26 @@
  
 zfs allow -l cyberleo @homedir testnas/home/cyberleo 
 zfs allow -d cyberleo @homeset testnas/home/cyberleo 
 zfs allow -c cyberleo @homeset testnas/home/cyberleo 
+</code>  
+  
+Create a 'set' of permissions on a dataset; these sets are available to child datasets, but not outside of that heirarchy  
+<code brush="plain">  
+zfs allow -s @homedir create,mount,readonly,snapshot testnas/home  
+zfs allow -s @homeset clone,create,destroy,mount,promote,readonly,rename,snapshot testnas/home  
+</code>  
+  
+Grant local permissions on a dataset  
+<code brush="plain">  
+zfs allow -l cyberleo @homedir testnas/home/cyberleo  
+</code>  
+  
+Grant permissions on descendants of the dataset  
+<code brush="plain">  
+zfs allow -d cyberleo @homeset testnas/home/cyberleo  
+</code>  
+  
+Set the permissions that will be granted to the creator when they create a dataset  
+<code brush="plain">  
+zfs allow -c @homeset testnas/home/cyberleo  
 </code> 

version 2

Probably has something to do with these:

zfs allow -s @homedir create,mount,readonly,snapshot testnas/home
zfs allow -s @homeset clone,create,destroy,mount,promote,readonly,rename,snapshot testnas/home

zfs allow -l cyberleo @homedir testnas/home/cyberleo
zfs allow -d cyberleo @homeset testnas/home/cyberleo
zfs allow -c cyberleo @homeset testnas/home/cyberleo

Create a 'set' of permissions on a dataset; these sets are available to child datasets, but not outside of that heirarchy

zfs allow -s @homedir create,mount,readonly,snapshot testnas/home
zfs allow -s @homeset clone,create,destroy,mount,promote,readonly,rename,snapshot testnas/home

Grant local permissions on a dataset

zfs allow -l cyberleo @homedir testnas/home/cyberleo

Grant permissions on descendants of the dataset

zfs allow -d cyberleo @homeset testnas/home/cyberleo

Set the permissions that will be granted to the creator when they create a dataset

zfs allow -c @homeset testnas/home/cyberleo