getfacl [-aceEsRLPtpndvh] file ...
getfacl [-aceEsRLPtpndvh] -
For each file, getfacl displays the file name, owner, the group, and
the Access Control List (ACL). If a directory has a default ACL, get-
facl also displays the default ACL. Non-directories cannot have default
If getfacl is used on a file system that does not support ACLs, getfacl
displays the access permissions defined by the traditional file mode
The output format of getfacl is as follows:
1: # file: somedir/
2: # owner: lisa
3: # group: staff
4: # flags: -s-
6: user:joe:rwx #effective:r-x
7: group::rwx #effective:r-x
12: default:user:joe:rwx #effective:r-x
Lines 1--3 indicate the file name, owner, and owning group.
Line 4 indicates the setuid (s), setgid (s), and sticky (t) bits:
either the letter representing the bit, or else a dash (-). This line
is included if any of those bits is set and left out otherwise, so it
will not be shown for most files. (See CONFORMANCE TO POSIX 1003.1e
DRAFT STANDARD 17 below.)
Lines 5, 7 and 10 correspond to the user, group and other fields of the
file mode permission bits. These three are called the base ACL entries.
Lines 6 and 8 are named user and named group entries. Line 9 is the
effective rights mask. This entry limits the effective rights granted
to all groups and to named users. (The file owner and others permis-
sions are not affected by the effective rights mask; all other entries
are.) Lines 11--15 display the default ACL associated with this direc-
tory. Directories may have a default ACL. Regular files never have a
The default behavior for getfacl is to display both the ACL and the
Process with search access to a file (i.e., processes with read access
to the containing directory of a file) are also granted read access to
the file's ACLs. This is analogous to the permissions required for
accessing the file mode.
Display the file access control list.
Display the default access control list.
Do not display the comment header (the first three lines of each
Print all effective rights comments, even if identical to the
rights defined by the ACL entry.
Do not print effective rights comments.
Skip files that only have the base ACL entries (owner, group, oth-
List the ACLs of all files and directories recursively.
Logical walk, follow symbolic links to directories. The default
behavior is to follow symbolic link arguments, and skip symbolic
links encountered in subdirectories. Only effective in combination
Physical walk, do not follow symbolic links to directories. This
also skips symbolic link arguments. Only effective in combination
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 dis-
played in capital letters, which helps in spotting those entries.
Do not strip leading slash characters (`/'). The default behavior
is to strip leading slash characters.
reads a list of files from standard input.
CONFORMANCE TO POSIX 1003.1e DRAFT STANDARD 17
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 -d option is given. If no command line parameter is given, getfacl
behaves as if it was invoked as ``getfacl -''. No flags comments indi-
cating the setuid, setgit, and sticky bits are generated.
Andreas Gruenbacher, <email@example.com>.
Please send your bug reports and comments to the above address.
May 2000 ACL File Utilities GETFACL(1)
Man Pages Copyright Respective Owners. Site Copyright (C) 1994 - 2018
All Rights Reserved.