Blame man/man1/getfacl.1

rpm-build 0a0c83
.\" Access Control Lists manual pages
rpm-build 0a0c83
.\"
rpm-build 0a0c83
.\" (C) 2000 Andreas Gruenbacher, <a.gruenbacher@bestbits.at>
rpm-build 0a0c83
.\"
rpm-build 0a0c83
.\" This is free documentation; you can redistribute it and/or
rpm-build 0a0c83
.\" modify it under the terms of the GNU General Public License as
rpm-build 0a0c83
.\" published by the Free Software Foundation; either version 2 of
rpm-build 0a0c83
.\" the License, or (at your option) any later version.
rpm-build 0a0c83
.\"
rpm-build 0a0c83
.\" The GNU General Public License's references to "object code"
rpm-build 0a0c83
.\" and "executables" are to be interpreted as the output of any
rpm-build 0a0c83
.\" document formatting or typesetting system, including
rpm-build 0a0c83
.\" intermediate and printed output.
rpm-build 0a0c83
.\"
rpm-build 0a0c83
.\" This manual is distributed in the hope that it will be useful,
rpm-build 0a0c83
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build 0a0c83
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
rpm-build 0a0c83
.\" GNU General Public License for more details.
rpm-build 0a0c83
.\"
rpm-build 0a0c83
.\" You should have received a copy of the GNU General Public
rpm-build 0a0c83
.\" License along with this manual.  If not, see
rpm-build 0a0c83
.\" <http://www.gnu.org/licenses/>.
rpm-build 0a0c83
.\" 
rpm-build 0a0c83
.fam T
rpm-build 0a0c83
.TH GETFACL 1 "ACL File Utilities" "May 2000" "Access Control Lists"
rpm-build 0a0c83
.SH NAME
rpm-build 0a0c83
getfacl \- get file access control lists
rpm-build 0a0c83
.SH SYNOPSIS
rpm-build 0a0c83
rpm-build 0a0c83
.B getfacl
rpm-build 0a0c83
[\-aceEsRLPtpndvh] file ...
rpm-build 0a0c83
rpm-build 0a0c83
.B getfacl
rpm-build 0a0c83
[\-aceEsRLPtpndvh] \-
rpm-build 0a0c83
rpm-build 0a0c83
.SH DESCRIPTION
rpm-build 0a0c83
For each file, getfacl displays the file name, owner, the group,
rpm-build 0a0c83
and the Access Control List (ACL). If a directory has a default ACL,
rpm-build 0a0c83
getfacl also displays the default ACL. Non-directories cannot have default ACLs.
rpm-build 0a0c83
rpm-build 0a0c83
If getfacl is used on a file system that does not support ACLs, getfacl
rpm-build 0a0c83
displays the access permissions defined by the traditional file mode permission
rpm-build 0a0c83
bits.
rpm-build 0a0c83
rpm-build 0a0c83
The output format of getfacl is as follows:
rpm-build 0a0c83
.fam C
rpm-build 0a0c83
.RS
rpm-build 0a0c83
.nf
rpm-build 0a0c83
 1:  # file: somedir/
rpm-build 0a0c83
 2:  # owner: lisa
rpm-build 0a0c83
 3:  # group: staff
rpm-build 0a0c83
 4:  # flags: \-s\-
rpm-build 0a0c83
 5:  user::rwx
rpm-build 0a0c83
 6:  user:joe:rwx               #effective:r\-x
rpm-build 0a0c83
 7:  group::rwx                 #effective:r\-x
rpm-build 0a0c83
 8:  group:cool:r\-x
rpm-build 0a0c83
 9:  mask::r\-x
rpm-build 0a0c83
10:  other::r\-x
rpm-build 0a0c83
11:  default:user::rwx
rpm-build 0a0c83
12:  default:user:joe:rwx       #effective:r\-x
rpm-build 0a0c83
13:  default:group::r\-x
rpm-build 0a0c83
14:  default:mask::r\-x
rpm-build 0a0c83
15:  default:other::\-\-\-
rpm-build 0a0c83
rpm-build 0a0c83
.fi
rpm-build 0a0c83
.RE
rpm-build 0a0c83
.fam T
rpm-build 0a0c83
rpm-build 0a0c83
Lines 1\-\-3 indicate the file name, owner, and owning group.
rpm-build 0a0c83
rpm-build 0a0c83
Line 4 indicates the setuid (s), setgid (s), and sticky (t) bits: either
rpm-build 0a0c83
the letter representing the bit, or else a dash (\-). This line is
rpm-build 0a0c83
included if any of those bits is set and left out otherwise, so it will
rpm-build 0a0c83
not be shown for most files. (See CONFORMANCE TO POSIX 1003.1e DRAFT STANDARD\~17
rpm-build 0a0c83
below.)
rpm-build 0a0c83
rpm-build 0a0c83
Lines 5, 7 and 10 correspond to the user, group and other fields of
rpm-build 0a0c83
the file mode permission bits. These three are called the base ACL
rpm-build 0a0c83
entries. Lines 6 and 8 are named user and named group entries. Line 9 is
rpm-build 0a0c83
the effective rights mask. This entry limits the effective rights granted
rpm-build 0a0c83
to all groups and to named users. (The file owner and others permissions
rpm-build 0a0c83
are not affected by the effective rights mask; all other entries are.)
rpm-build 0a0c83
Lines 11\-\-15 display
rpm-build 0a0c83
the default ACL associated with this directory. Directories may
rpm-build 0a0c83
have a default ACL. Regular files never have a default ACL.
rpm-build 0a0c83
rpm-build 0a0c83
The default behavior for getfacl is to display both the ACL and the
rpm-build 0a0c83
default ACL, and to include an effective rights comment for lines
rpm-build 0a0c83
where the rights of the entry differ from the effective rights.
rpm-build 0a0c83
rpm-build 0a0c83
If output is to a terminal, the effective rights comment is aligned to
rpm-build 0a0c83
column 40. Otherwise, a single tab character separates the ACL entry
rpm-build 0a0c83
and the effective rights comment.
rpm-build 0a0c83
rpm-build 0a0c83
The ACL listings of multiple files are separated by blank lines.
rpm-build 0a0c83
The output of getfacl can also be used as input to setfacl.
rpm-build 0a0c83
rpm-build 0a0c83
.SS PERMISSIONS
rpm-build 0a0c83
Process with search access to a file (i.e., processes with read access
rpm-build 0a0c83
to the containing directory of a file) are also granted read access
rpm-build 0a0c83
to the file's ACLs.  This is analogous to the permissions required for
rpm-build 0a0c83
accessing the file mode.
rpm-build 0a0c83
rpm-build 0a0c83
.SH OPTIONS
rpm-build 0a0c83
.TP 4
rpm-build 0a0c83
.I \-a, \-\-access
rpm-build 0a0c83
Display the file access control list.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-d, \-\-default
rpm-build 0a0c83
Display the default access control list.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-c, \-\-omit-header
rpm-build 0a0c83
Do not display the comment header (the first three lines of each file's output).
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-e, \-\-all-effective
rpm-build 0a0c83
Print all effective rights comments, even if identical to the rights defined by the ACL entry.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-E, \-\-no-effective
rpm-build 0a0c83
Do not print effective rights comments.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-s, \-\-skip-base
rpm-build 0a0c83
Skip files that only have the base ACL entries (owner, group, others).
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-R, \-\-recursive
rpm-build 0a0c83
List the ACLs of all files and directories recursively.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-L, \-\-logical
rpm-build 0a0c83
Logical walk, follow symbolic links to directories. The default behavior is to follow
rpm-build 0a0c83
symbolic link arguments, and skip symbolic links encountered in subdirectories.
rpm-build 0a0c83
Only effective in combination with \-R.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-P, \-\-physical
rpm-build 0a0c83
Physical walk, do not follow symbolic links to directories. This also skips symbolic
rpm-build 0a0c83
link arguments.
rpm-build 0a0c83
Only effective in combination with \-R.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-t, \-\-tabular
rpm-build 0a0c83
Use an alternative tabular output format. The ACL and the default ACL are displayed side by side. Permissions that are ineffective due to the ACL mask entry are displayed capitalized. The entry tag names for the ACL_USER_OBJ and ACL_GROUP_OBJ entries are also displayed in capital letters, which helps in spotting those entries.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-p, \-\-absolute-names
rpm-build 0a0c83
Do not strip leading slash characters (`/'). The default behavior is to
rpm-build 0a0c83
strip leading slash characters.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-n, \-\-numeric
rpm-build 0a0c83
List numeric user and group IDs
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-v, \-\-version
rpm-build 0a0c83
Print the version of getfacl and exit.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-h, \-\-help
rpm-build 0a0c83
Print help explaining the command line options.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-\-
rpm-build 0a0c83
End of command line options. All remaining parameters are interpreted as file names, even if they start with a dash character.
rpm-build 0a0c83
.TP
rpm-build 0a0c83
.I \-
rpm-build 0a0c83
If the file name parameter is a single dash character, getfacl reads a list of files from standard input.
rpm-build 0a0c83
rpm-build 0a0c83
.SH CONFORMANCE TO POSIX 1003.1e DRAFT STANDARD 17
rpm-build 0a0c83
If the environment variable POSIXLY_CORRECT is defined, the default behavior of getfacl changes in the following ways: Unless otherwise specified, only the ACL is printed. The default ACL is only printed if the
rpm-build 0a0c83
.I \-d
rpm-build 0a0c83
option is given. If no command line parameter is given,
rpm-build 0a0c83
.I getfacl
rpm-build 0a0c83
behaves as if it was invoked as ``getfacl \-''.
rpm-build 0a0c83
No flags comments indicating the setuid, setgit, and sticky bits are generated.
rpm-build 0a0c83
.SH AUTHOR
rpm-build 0a0c83
Andreas Gruenbacher,
rpm-build 0a0c83
.RI < a.gruenbacher@bestbits.at >.
rpm-build 0a0c83
rpm-build 0a0c83
Please send your bug reports and comments to the above address.
rpm-build 0a0c83
.SH SEE ALSO
rpm-build 0a0c83
.BR setfacl "(1), " acl (5)