2005-01-10 08:39:26 +00:00
|
|
|
.\"-
|
2001-03-19 18:09:25 +00:00
|
|
|
.\" Copyright (c) 2001 Chris D. Faulhaber
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR THE VOICES IN HIS HEAD BE
|
|
|
|
.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2009-09-07 16:19:32 +00:00
|
|
|
.Dd September 5, 2009
|
2001-03-19 18:09:25 +00:00
|
|
|
.Dt SETFACL 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm setfacl
|
2001-04-18 15:54:10 +00:00
|
|
|
.Nd set ACL information
|
2001-03-19 18:09:25 +00:00
|
|
|
.Sh SYNOPSIS
|
2001-03-23 08:14:27 +00:00
|
|
|
.Nm
|
2002-12-30 15:36:29 +00:00
|
|
|
.Op Fl bdhkn
|
2009-09-07 16:19:32 +00:00
|
|
|
.Op Fl a Ar position entries
|
2001-03-19 18:09:25 +00:00
|
|
|
.Op Fl m Ar entries
|
2005-02-09 17:37:39 +00:00
|
|
|
.Op Fl M Ar file
|
2009-09-07 16:19:32 +00:00
|
|
|
.Op Fl x Ar entries | position
|
2005-02-09 17:37:39 +00:00
|
|
|
.Op Fl X Ar file
|
2001-03-23 08:14:27 +00:00
|
|
|
.Op Ar
|
2001-03-19 18:09:25 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility sets discretionary access control information on
|
2006-06-09 17:03:24 +00:00
|
|
|
the specified file(s).
|
2006-09-17 17:40:07 +00:00
|
|
|
If no files are specified, or the list consists of the only
|
|
|
|
.Sq Fl ,
|
|
|
|
the file names are taken from the standard input.
|
2001-03-19 18:09:25 +00:00
|
|
|
.Pp
|
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width indent
|
2009-09-07 16:19:32 +00:00
|
|
|
.It Fl a Ar position entries
|
|
|
|
Modify the ACL on the specified files by inserting new
|
|
|
|
ACL entries
|
|
|
|
specified in
|
|
|
|
.Ar entries ,
|
|
|
|
starting at position
|
|
|
|
.Ar position ,
|
|
|
|
counting from zero.
|
|
|
|
This option is only applicable to NFSv4 ACLs.
|
2001-03-19 18:09:25 +00:00
|
|
|
.It Fl b
|
2009-09-07 16:19:32 +00:00
|
|
|
Remove all ACL entries except for the three required entries
|
|
|
|
(POSIX.1e ACLs) or six "canonical" entries (NFSv4 ACLs).
|
|
|
|
If the POSIX.1e ACL contains a
|
2001-12-02 18:46:33 +00:00
|
|
|
.Dq Li mask
|
|
|
|
entry, the permissions of the
|
|
|
|
.Dq Li group
|
|
|
|
entry in the resulting ACL will be set to the permission
|
2001-12-04 14:20:46 +00:00
|
|
|
associated with both the
|
2001-12-02 18:46:33 +00:00
|
|
|
.Dq Li group
|
|
|
|
and
|
|
|
|
.Dq Li mask
|
|
|
|
entries of the current ACL.
|
2001-03-19 18:09:25 +00:00
|
|
|
.It Fl d
|
|
|
|
The operations apply to the default ACL entries instead of
|
2004-07-02 21:04:19 +00:00
|
|
|
access ACL entries.
|
|
|
|
Currently only directories may have
|
2009-09-07 16:19:32 +00:00
|
|
|
default ACL's. This option is not applicable to NFSv4 ACLs.
|
2002-12-30 15:36:29 +00:00
|
|
|
.It Fl h
|
|
|
|
If the target of the operation is a symbolic link, perform the operation
|
|
|
|
on the symbolic link itself, rather than following the link.
|
2001-03-19 18:09:25 +00:00
|
|
|
.It Fl k
|
2004-07-02 21:04:19 +00:00
|
|
|
Delete any default ACL entries on the specified files.
|
|
|
|
It
|
2001-03-19 18:09:25 +00:00
|
|
|
is not considered an error if the specified files do not have
|
2004-07-02 21:04:19 +00:00
|
|
|
any default ACL entries.
|
|
|
|
An error will be reported if any of
|
2001-03-23 08:14:27 +00:00
|
|
|
the specified files cannot have a default entry (i.e.\&
|
2009-09-07 16:19:32 +00:00
|
|
|
non-directories). This option is not applicable to NFSv4 ACLs.
|
2001-03-19 18:09:25 +00:00
|
|
|
.It Fl m Ar entries
|
|
|
|
Modify the ACL entries on the specified files by adding new
|
|
|
|
entries and modifying existing ACL entries with the ACL entries
|
|
|
|
specified in
|
|
|
|
.Ar entries .
|
|
|
|
.It Fl M Ar file
|
|
|
|
Modify the ACL entries on the specified files by adding new
|
|
|
|
ACL entries and modifying existing ACL entries with the ACL
|
|
|
|
entries specified in the file
|
|
|
|
.Ar file .
|
|
|
|
If
|
|
|
|
.Ar file
|
2001-03-23 08:14:27 +00:00
|
|
|
is
|
|
|
|
.Fl ,
|
|
|
|
the input is taken from stdin.
|
2001-03-19 18:09:25 +00:00
|
|
|
.It Fl n
|
|
|
|
Do not recalculate the permissions associated with the ACL
|
2009-09-07 16:19:32 +00:00
|
|
|
mask entry. This option is not applicable to NFSv4 ACLs.
|
|
|
|
.It Fl x Ar entries | position
|
|
|
|
If
|
2001-03-19 18:09:25 +00:00
|
|
|
.Ar entries
|
2009-09-07 16:19:32 +00:00
|
|
|
is specified, remove the ACL entries specified there
|
2001-03-19 18:09:25 +00:00
|
|
|
from the access or default ACL of the specified files.
|
2009-09-07 16:19:32 +00:00
|
|
|
Otherwise, remove entry at index
|
|
|
|
.Ar position ,
|
|
|
|
counting from zero.
|
2001-03-19 18:09:25 +00:00
|
|
|
.It Fl X Ar file
|
|
|
|
Remove the ACL entries specified in the file
|
|
|
|
.Ar file
|
|
|
|
from the access or default ACL of the specified files.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The above options are evaluated in the order specified
|
|
|
|
on the command-line.
|
2009-09-07 16:19:32 +00:00
|
|
|
.Sh POSIX.1e ACL ENTRIES
|
|
|
|
A POSIX.1E ACL entry contains three colon-separated fields:
|
2001-03-19 18:09:25 +00:00
|
|
|
an ACL tag, an ACL qualifier, and discretionary access
|
|
|
|
permissions:
|
|
|
|
.Bl -tag -width indent
|
2001-03-23 08:14:27 +00:00
|
|
|
.It Ar "ACL tag"
|
|
|
|
The ACL tag specifies the ACL entry type and consists of
|
|
|
|
one of the following:
|
|
|
|
.Dq Li user
|
|
|
|
or
|
|
|
|
.Ql u
|
|
|
|
specifying the access
|
|
|
|
granted to the owner of the file or a specified user;
|
|
|
|
.Dq Li group
|
|
|
|
or
|
|
|
|
.Ql g
|
|
|
|
specifying the access granted to the file owning group
|
|
|
|
or a specified group;
|
|
|
|
.Dq Li other
|
|
|
|
or
|
|
|
|
.Ql o
|
|
|
|
specifying the access
|
2001-03-19 18:09:25 +00:00
|
|
|
granted to any process that does not match any user or group
|
2001-03-23 08:14:27 +00:00
|
|
|
ACL entry;
|
|
|
|
.Dq Li mask
|
|
|
|
or
|
|
|
|
.Ql m
|
|
|
|
specifying the maximum access
|
2001-03-19 18:09:25 +00:00
|
|
|
granted to any ACL entry except the
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li user
|
2001-03-19 18:09:25 +00:00
|
|
|
ACL entry for the file owner and the
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li other
|
2001-03-19 18:09:25 +00:00
|
|
|
ACL entry.
|
2001-03-23 08:14:27 +00:00
|
|
|
.It Ar "ACL qualifier"
|
2001-03-19 18:09:25 +00:00
|
|
|
The ACL qualifier field describes the user or group associated with
|
2004-07-02 21:04:19 +00:00
|
|
|
the ACL entry.
|
|
|
|
It may consist of one of the following: uid or
|
|
|
|
user name, gid or group name, or empty.
|
|
|
|
For
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li user
|
|
|
|
ACL entries, an empty field specifies access granted to the
|
2004-07-02 21:04:19 +00:00
|
|
|
file owner.
|
|
|
|
For
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li group
|
|
|
|
ACL entries, an empty field specifies access granted to the
|
2001-03-19 18:09:25 +00:00
|
|
|
file owning group.
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li mask
|
2001-03-19 18:09:25 +00:00
|
|
|
and
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li other
|
2001-03-19 18:09:25 +00:00
|
|
|
ACL entries do not use this field.
|
2001-03-23 08:14:27 +00:00
|
|
|
.It Ar "access permissions"
|
|
|
|
The access permissions field contains up to one of each of
|
|
|
|
the following:
|
|
|
|
.Ql r ,
|
|
|
|
.Ql w ,
|
|
|
|
and
|
|
|
|
.Ql x
|
|
|
|
to set read, write, and
|
2004-07-02 21:04:19 +00:00
|
|
|
execute permissions, respectively.
|
|
|
|
Each of these may be excluded
|
2001-03-23 08:14:27 +00:00
|
|
|
or replaced with a
|
|
|
|
.Ql -
|
|
|
|
character to indicate no access.
|
2001-03-19 18:09:25 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
A
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li mask
|
2001-03-19 18:09:25 +00:00
|
|
|
ACL entry is required on a file with any ACL entries other than
|
|
|
|
the default
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li user ,
|
|
|
|
.Dq Li group ,
|
2001-03-19 18:09:25 +00:00
|
|
|
and
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li other
|
2004-07-02 21:04:19 +00:00
|
|
|
ACL entries.
|
|
|
|
If the
|
2001-03-19 18:09:25 +00:00
|
|
|
.Fl n
|
|
|
|
option is not specified and no
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li mask
|
2001-03-19 18:09:25 +00:00
|
|
|
ACL entry was specified, the
|
|
|
|
.Nm
|
|
|
|
utility
|
|
|
|
will apply a
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li mask
|
2001-03-19 18:09:25 +00:00
|
|
|
ACL entry consisting of the union of the permissions associated
|
|
|
|
with all
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li group
|
2001-03-19 18:09:25 +00:00
|
|
|
ACL entries in the resulting ACL.
|
|
|
|
.Pp
|
2003-08-07 14:52:17 +00:00
|
|
|
Traditional POSIX interfaces acting on file system object modes have
|
|
|
|
modified semantics in the presence of POSIX.1e extended ACLs.
|
|
|
|
When a mask entry is present on the access ACL of an object, the mask
|
|
|
|
entry is substituted for the group bits; this occurs in programs such
|
|
|
|
as
|
|
|
|
.Xr stat 1
|
|
|
|
or
|
|
|
|
.Xr ls 1 .
|
|
|
|
When the mode is modified on an object that has a mask entry, the
|
|
|
|
changes applied to the group bits will actually be applied to the
|
|
|
|
mask entry.
|
|
|
|
These semantics provide for greater application compatibility:
|
|
|
|
applications modifying the mode instead of the ACL will see
|
|
|
|
conservative behavior, limiting the effective rights granted by all
|
|
|
|
of the additional user and group entries; this occurs in programs
|
|
|
|
such as
|
|
|
|
.Xr chmod 1 .
|
|
|
|
.Pp
|
2001-03-19 18:09:25 +00:00
|
|
|
ACL entries applied from a file using the
|
|
|
|
.Fl M
|
|
|
|
or
|
|
|
|
.Fl X
|
|
|
|
options shall be of the following form: one ACL entry per line, as
|
2001-03-23 08:14:27 +00:00
|
|
|
previously specified; whitespace is ignored; any text after a
|
|
|
|
.Ql #
|
|
|
|
is ignored (comments).
|
2001-03-19 18:09:25 +00:00
|
|
|
.Pp
|
2009-09-07 16:19:32 +00:00
|
|
|
When POSIX.1e ACL entries are evaluated, the access check algorithm checks
|
2001-03-19 18:09:25 +00:00
|
|
|
the ACL entries in the following order: file owner,
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li user
|
2001-03-19 18:09:25 +00:00
|
|
|
ACL entries, file owning group,
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li group
|
2001-03-19 18:09:25 +00:00
|
|
|
ACL entries, and
|
2001-03-23 08:14:27 +00:00
|
|
|
.Dq Li other
|
2001-03-19 18:09:25 +00:00
|
|
|
ACL entry.
|
2001-12-02 18:46:33 +00:00
|
|
|
.Pp
|
|
|
|
Multiple ACL entries specified on the command line are
|
|
|
|
separated by commas.
|
2008-07-06 20:29:35 +00:00
|
|
|
.Pp
|
|
|
|
It is possible for files and directories to inherit ACL entries from their
|
2008-07-06 22:47:10 +00:00
|
|
|
parent directory.
|
|
|
|
This is accomplished through the use of the default ACL.
|
2008-07-06 20:29:35 +00:00
|
|
|
It should be noted that before you can specify a default ACL, the mandatory
|
2008-07-06 22:47:10 +00:00
|
|
|
ACL entries for user, group, other and mask must be set.
|
|
|
|
For more details see the examples below.
|
|
|
|
Default ACLs can be created by using
|
2008-07-06 20:29:35 +00:00
|
|
|
.Fl d .
|
2009-09-07 16:19:32 +00:00
|
|
|
.Sh NFSv4 ACL ENTRIES
|
|
|
|
An NFSv4 ACL entry contains four or five colon-separated fields: an ACL tag,
|
|
|
|
an ACL qualifier (only for
|
|
|
|
.Dq Li user
|
|
|
|
and
|
|
|
|
.Dq Li group
|
|
|
|
tags), discretionary access permissions, ACL inheritance flags, and ACL type:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Ar "ACL tag"
|
|
|
|
The ACL tag specifies the ACL entry type and consists of
|
|
|
|
one of the following:
|
|
|
|
.Dq Li user
|
|
|
|
or
|
|
|
|
.Ql u
|
|
|
|
specifying the access
|
|
|
|
granted to the specified user;
|
|
|
|
.Dq Li group
|
|
|
|
or
|
|
|
|
.Ql g
|
|
|
|
specifying the access granted to the specified group;
|
|
|
|
.Dq Li owner@
|
|
|
|
specifying the access granted to the owner of the file;
|
|
|
|
.Dq Li group@
|
|
|
|
specifying the access granted to the file owning group;
|
|
|
|
.Dq Li everyone@
|
|
|
|
specifying everyone. Note that
|
|
|
|
.Dq Li everyone@
|
|
|
|
is not the same as traditional Unix
|
|
|
|
.Dq Li other
|
|
|
|
- it means,
|
|
|
|
literally, everyone, including file owner and owning group.
|
|
|
|
.It Ar "ACL qualifier"
|
|
|
|
The ACL qualifier field describes the user or group associated with
|
|
|
|
the ACL entry.
|
|
|
|
It may consist of one of the following: uid or
|
|
|
|
user name, or gid or group name. In entries whose tag type is
|
|
|
|
one of
|
|
|
|
.Dq Li owner@ ,
|
|
|
|
.Dq Li group@ ,
|
|
|
|
or
|
|
|
|
.Dq Li everyone@ ,
|
|
|
|
this field is ommited altogether, including the trailing comma.
|
|
|
|
.It Ar "access permissions"
|
|
|
|
Access permissions may be specified in either short or long form.
|
|
|
|
Short and long forms may not be mixed.
|
|
|
|
Permissions in long form are separated by the
|
|
|
|
.Ql /
|
|
|
|
character; in short form, they are concatenated together.
|
|
|
|
Valid permissions are:
|
|
|
|
.Bl -tag -width ".Dv short"
|
|
|
|
.It Short
|
|
|
|
Long
|
|
|
|
.It r
|
|
|
|
read_data
|
|
|
|
.It w
|
|
|
|
write_data
|
|
|
|
.It x
|
|
|
|
execute
|
|
|
|
.It p
|
|
|
|
append_data
|
|
|
|
.It d
|
|
|
|
delete_child
|
|
|
|
.It D
|
|
|
|
delete
|
|
|
|
.It a
|
|
|
|
read_attributes
|
|
|
|
.It A
|
|
|
|
write_attributes
|
|
|
|
.It R
|
|
|
|
read_xattr
|
|
|
|
.It W
|
|
|
|
write_xattr
|
|
|
|
.It c
|
|
|
|
read_acl
|
|
|
|
.It C
|
|
|
|
write_acl
|
|
|
|
.It o
|
|
|
|
write_owner
|
|
|
|
.It S
|
|
|
|
synchronize
|
|
|
|
.El
|
|
|
|
.It Ar "ACL inheritance flags"
|
|
|
|
Inheritance flags may be specified in either short or long form.
|
|
|
|
Short and long forms may not be mixed.
|
|
|
|
Access flags in long form are separated by the
|
|
|
|
.Ql /
|
|
|
|
character; in short form, they are concatenated together.
|
|
|
|
Valid inheritance flags are:
|
|
|
|
.Bl -tag -width ".Dv short"
|
|
|
|
.It Short
|
|
|
|
Long
|
|
|
|
.It f
|
|
|
|
file_inherit
|
|
|
|
.It d
|
|
|
|
dir_inherit
|
|
|
|
.It i
|
|
|
|
inherit_only
|
|
|
|
.It n
|
|
|
|
no_propagate
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Inheritance flags may be only set on directories.
|
|
|
|
.It Ar "ACL type"
|
|
|
|
The ACL type field is either
|
|
|
|
.Dq Li allow
|
|
|
|
or
|
|
|
|
.Dq Li deny .
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
ACL entries applied from a file using the
|
|
|
|
.Fl M
|
|
|
|
or
|
|
|
|
.Fl X
|
|
|
|
options shall be of the following form: one ACL entry per line, as
|
|
|
|
previously specified; whitespace is ignored; any text after a
|
|
|
|
.Ql #
|
|
|
|
is ignored (comments).
|
|
|
|
.Pp
|
|
|
|
NFSv4 ACL entries are evaluated in their visible order.
|
|
|
|
.Pp
|
|
|
|
Multiple ACL entries specified on the command line are
|
|
|
|
separated by commas.
|
2005-01-16 16:41:59 +00:00
|
|
|
.Sh EXIT STATUS
|
2001-08-15 09:09:47 +00:00
|
|
|
.Ex -std
|
2001-03-19 18:09:25 +00:00
|
|
|
.Sh EXAMPLES
|
2008-07-06 20:29:35 +00:00
|
|
|
.Dl setfacl -d -m u::rwx,g::rx,o::rx,mask::rwx dir
|
|
|
|
.Dl setfacl -d -m g:admins:rwx dir
|
|
|
|
.Pp
|
2009-09-07 16:19:32 +00:00
|
|
|
The first command sets the mandatory elements of the POSIX.1e default ACL.
|
2008-07-06 22:47:10 +00:00
|
|
|
The second command specifies that users in group admins can have read, write, and execute
|
|
|
|
permissions for directory named "dir".
|
|
|
|
It should be noted that any files or directories created underneath "dir" will
|
|
|
|
inherit these default ACLs upon creation.
|
2008-07-06 20:29:35 +00:00
|
|
|
.Pp
|
2001-03-19 18:09:25 +00:00
|
|
|
.Dl setfacl -m u::rwx,g:mail:rw file
|
|
|
|
.Pp
|
|
|
|
Sets read, write, and execute permissions for the
|
|
|
|
.Pa file
|
2009-09-07 16:19:32 +00:00
|
|
|
owner's POSIX.1e ACL entry and read and write permissions for group mail on
|
2001-03-19 18:09:25 +00:00
|
|
|
.Pa file .
|
|
|
|
.Pp
|
2009-09-07 16:19:32 +00:00
|
|
|
.Dl setfacl -m owner@:rwxp::allow,g:mail:rwp::allow file
|
|
|
|
.Pp
|
|
|
|
Semantically equal to the example above, but for NFSv4 ACL.
|
|
|
|
.Pp
|
2001-03-19 18:09:25 +00:00
|
|
|
.Dl setfacl -M file1 file2
|
|
|
|
.Pp
|
|
|
|
Sets/updates the ACL entries contained in
|
|
|
|
.Pa file1
|
|
|
|
on
|
|
|
|
.Pa file2 .
|
|
|
|
.Pp
|
|
|
|
.Dl setfacl -x g:mail:rw file
|
|
|
|
.Pp
|
2009-09-07 16:19:32 +00:00
|
|
|
Remove the group mail POSIX.1e ACL entry containing read/write permissions
|
2001-03-19 18:09:25 +00:00
|
|
|
from
|
2005-12-13 17:07:52 +00:00
|
|
|
.Pa file .
|
2001-03-19 18:09:25 +00:00
|
|
|
.Pp
|
2009-09-07 16:19:32 +00:00
|
|
|
.Dl setfacl -x0 file
|
|
|
|
.Pp
|
|
|
|
Remove the first entry from the NFSv4 ACL from
|
|
|
|
.Pa file .
|
|
|
|
.Pp
|
2001-12-03 00:27:15 +00:00
|
|
|
.Dl setfacl -bn file
|
2001-03-19 18:09:25 +00:00
|
|
|
.Pp
|
2001-12-03 00:27:15 +00:00
|
|
|
Remove all
|
|
|
|
.Dq Li access
|
|
|
|
ACL entries except for the three required from
|
2001-03-19 18:09:25 +00:00
|
|
|
.Pa file .
|
|
|
|
.Pp
|
|
|
|
.Dl getfacl file1 | setfacl -b -n -M - file2
|
|
|
|
.Pp
|
|
|
|
Copy ACL entries from
|
|
|
|
.Pa file1
|
|
|
|
to
|
|
|
|
.Pa file2 .
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr getfacl 1 ,
|
|
|
|
.Xr acl 3 ,
|
|
|
|
.Xr getextattr 8 ,
|
|
|
|
.Xr setextattr 8 ,
|
|
|
|
.Xr acl 9 ,
|
2001-03-23 08:14:27 +00:00
|
|
|
.Xr extattr 9
|
2001-03-19 18:09:25 +00:00
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
2001-03-23 08:14:27 +00:00
|
|
|
utility is expected to be
|
|
|
|
.Tn IEEE
|
|
|
|
Std 1003.2c compliant.
|
2001-03-19 18:09:25 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
Extended Attribute and Access Control List support was developed
|
2001-03-23 08:14:27 +00:00
|
|
|
as part of the
|
|
|
|
.Tn TrustedBSD
|
|
|
|
Project and introduced in
|
2001-03-19 18:09:25 +00:00
|
|
|
.Fx 5.0 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility was written by
|
|
|
|
.An Chris D. Faulhaber Aq jedgar@fxp.org .
|