4181 zfs(1m): 'zfs allow' examples in the man page are outdated

Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Marcel Telka <marcel.telka@nexenta.com>

illumos/illumos-gate@5619b3f847
This commit is contained in:
Xin LI 2014-12-06 00:38:55 +00:00
parent 8317661e7a
commit 9c207a0483

View File

@ -24,11 +24,11 @@
.\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org> .\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
.\" Copyright (c) 2014 by Delphix. All rights reserved. .\" Copyright (c) 2014 by Delphix. All rights reserved.
.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved. .\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
.\" Copyright 2013 Nexenta Systems, Inc. All Rights Reserved.
.\" Copyright (c) 2014, Joyent, Inc. All rights reserved. .\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
.\" Copyright (c) 2014 by Adam Stevko. All rights reserved. .\" Copyright (c) 2014 by Adam Stevko. All rights reserved.
.\" Copyright 2014 Nexenta Systems, Inc. All Rights Reserved.
.\" .\"
.TH ZFS 1M "March 6, 2014" .TH ZFS 1M "November 11, 2014"
.SH NAME .SH NAME
zfs \- configures ZFS file systems zfs \- configures ZFS file systems
.SH SYNOPSIS .SH SYNOPSIS
@ -4038,10 +4038,9 @@ permissions on \fBtank/cindys\fR are also displayed.
.nf .nf
# \fBzfs allow cindys create,destroy,mount,snapshot tank/cindys\fR # \fBzfs allow cindys create,destroy,mount,snapshot tank/cindys\fR
# \fBzfs allow tank/cindys\fR # \fBzfs allow tank/cindys\fR
------------------------------------------------------------- ---- Permissions on tank/cindys --------------------------------------
Local+Descendent permissions on (tank/cindys) Local+Descendent permissions:
user cindys create,destroy,mount,snapshot user cindys create,destroy,mount,snapshot
-------------------------------------------------------------
.fi .fi
.in -2 .in -2
.sp .sp
@ -4074,12 +4073,11 @@ The permissions on \fBtank/users\fR are also displayed.
# \fBzfs allow staff create,mount tank/users\fR # \fBzfs allow staff create,mount tank/users\fR
# \fBzfs allow -c destroy tank/users\fR # \fBzfs allow -c destroy tank/users\fR
# \fBzfs allow tank/users\fR # \fBzfs allow tank/users\fR
------------------------------------------------------------- ---- Permissions on tank/users ---------------------------------------
Create time permissions on (tank/users) Permission sets:
create,destroy destroy
Local+Descendent permissions on (tank/users) Local+Descendent permissions:
group staff create,mount group staff create,mount
-------------------------------------------------------------
.fi .fi
.in -2 .in -2
.sp .sp
@ -4098,14 +4096,11 @@ displayed.
# \fBzfs allow -s @pset create,destroy,snapshot,mount tank/users\fR # \fBzfs allow -s @pset create,destroy,snapshot,mount tank/users\fR
# \fBzfs allow staff @pset tank/users\fR # \fBzfs allow staff @pset tank/users\fR
# \fBzfs allow tank/users\fR # \fBzfs allow tank/users\fR
------------------------------------------------------------- ---- Permissions on tank/users ---------------------------------------
Permission sets on (tank/users) Permission sets:
@pset create,destroy,mount,snapshot @pset create,destroy,mount,snapshot
Create time permissions on (tank/users) Local+Descendent permissions:
create,destroy group staff @pset
Local+Descendent permissions on (tank/users)
group staff @pset,create,mount
-------------------------------------------------------------
.fi .fi
.in -2 .in -2
.sp .sp
@ -4123,14 +4118,13 @@ also displayed.
.nf .nf
# \fBzfs allow cindys quota,reservation users/home\fR # \fBzfs allow cindys quota,reservation users/home\fR
# \fBzfs allow users/home\fR # \fBzfs allow users/home\fR
------------------------------------------------------------- ---- Permissions on users/home ---------------------------------------
Local+Descendent permissions on (users/home) Local+Descendent permissions:
user cindys quota,reservation user cindys quota,reservation
-------------------------------------------------------------
cindys% \fBzfs set quota=10G users/home/marks\fR cindys% \fBzfs set quota=10G users/home/marks\fR
cindys% \fBzfs get quota users/home/marks\fR cindys% \fBzfs get quota users/home/marks\fR
NAME PROPERTY VALUE SOURCE NAME PROPERTY VALUE SOURCE
users/home/marks quota 10G local users/home/marks quota 10G local
.fi .fi
.in -2 .in -2
.sp .sp
@ -4148,14 +4142,11 @@ The following example shows how to remove the snapshot permission from the
.nf .nf
# \fBzfs unallow staff snapshot tank/users\fR # \fBzfs unallow staff snapshot tank/users\fR
# \fBzfs allow tank/users\fR # \fBzfs allow tank/users\fR
------------------------------------------------------------- ---- Permissions on tank/users ---------------------------------------
Permission sets on (tank/users) Permission sets:
@pset create,destroy,mount,snapshot @pset create,destroy,mount,snapshot
Create time permissions on (tank/users) Local+Descendent permissions:
create,destroy group staff @pset
Local+Descendent permissions on (tank/users)
group staff @pset,create,mount
-------------------------------------------------------------
.fi .fi
.in -2 .in -2
.sp .sp