1GETFACL(1)                   Access Control Lists                   GETFACL(1)
2
3
4

NAME

6       getfacl - get file access control lists
7

SYNOPSIS

9       getfacl [-aceEsRLPtpndvh] file ...
10
11       getfacl [-aceEsRLPtpndvh] -
12
13

DESCRIPTION

15       For  each  file,  getfacl displays the file name, owner, the group, and
16       the Access Control List (ACL). If a directory has a default  ACL,  get‐
17       facl also displays the default ACL. Non-directories cannot have default
18       ACLs.
19
20       If getfacl is used on a file system that does not support ACLs, getfacl
21       displays  the  access  permissions defined by the traditional file mode
22       permission bits.
23
24       The output format of getfacl is as follows:
25               1:  # file: somedir/
26               2:  # owner: lisa
27               3:  # group: staff
28               4:  # flags: -s-
29               5:  user::rwx
30               6:  user:joe:rwx               #effective:r-x
31               7:  group::rwx                 #effective:r-x
32               8:  group:cool:r-x
33               9:  mask::r-x
34              10:  other::r-x
35              11:  default:user::rwx
36              12:  default:user:joe:rwx       #effective:r-x
37              13:  default:group::r-x
38              14:  default:mask::r-x
39              15:  default:other::---
40
41
42       Lines 1--3 indicate the file name, owner, and owning group.
43
44       Line 4 indicates the setuid (s), setgid (s), and sticky (t)  bits:  ei‐
45       ther  the letter representing the bit, or else a dash (-). This line is
46       included if any of those bits is set and left out otherwise, so it will
47       not  be  shown  for most files. (See CONFORMANCE TO POSIX 1003.1e DRAFT
48       STANDARD 17 below.)
49
50       Lines 5, 7 and 10 correspond to the user, group and other fields of the
51       file mode permission bits. These three are called the base ACL entries.
52       Lines 6 and 8 are named user and named group entries. Line 9 is the ef‐
53       fective  rights mask. This entry limits the effective rights granted to
54       all groups and to named users. (The file owner and  others  permissions
55       are  not affected by the effective rights mask; all other entries are.)
56       Lines 11--15 display the default ACL associated  with  this  directory.
57       Directories  may have a default ACL. Regular files never have a default
58       ACL.
59
60       The default behavior for getfacl is to display both the ACL and the de‐
61       fault  ACL,  and to include an effective rights comment for lines where
62       the rights of the entry differ from the effective rights.
63
64       If output is to a terminal, the effective rights comment is aligned  to
65       column  40.  Otherwise,  a single tab character separates the ACL entry
66       and the effective rights comment.
67
68       The ACL listings of multiple files are separated by blank  lines.   The
69       output of getfacl can also be used as input to setfacl.
70
71
72   PERMISSIONS
73       Process  with search access to a file (i.e., processes with read access
74       to the containing directory of a file) are also granted read access  to
75       the file's ACLs.  This is analogous to the permissions required for ac‐
76       cessing the file mode.
77
78

OPTIONS

80       -a, --access
81           Display the file access control list.
82
83       -d, --default
84           Display the default access control list.
85
86       -c, --omit-header
87           Do not display the comment header (the first three  lines  of  each
88           file's output).
89
90       -e, --all-effective
91           Print  all  effective  rights  comments,  even  if identical to the
92           rights defined by the ACL entry.
93
94       -E, --no-effective
95           Do not print effective rights comments.
96
97       -s, --skip-base
98           Skip files that only have the base ACL entries (owner, group,  oth‐
99           ers).
100
101       -R, --recursive
102           List the ACLs of all files and directories recursively.
103
104       -L, --logical
105           Logical walk, follow symbolic links to directories. The default be‐
106           havior is to follow symbolic  link  arguments,  and  skip  symbolic
107           links encountered in subdirectories.  Only effective in combination
108           with -R.
109
110       -P, --physical
111           Physical walk, do not follow symbolic links  to  directories.  This
112           also  skips symbolic link arguments.  Only effective in combination
113           with -R.
114
115       -t, --tabular
116           Use an alternative tabular output format. The ACL and  the  default
117           ACL  are  displayed  side by side. Permissions that are ineffective
118           due to the ACL mask entry are displayed capitalized. The entry  tag
119           names  for the ACL_USER_OBJ and ACL_GROUP_OBJ entries are also dis‐
120           played in capital letters, which helps in spotting those entries.
121
122       -p, --absolute-names
123           Do not strip leading slash characters (`/'). The  default  behavior
124           is to strip leading slash characters.
125
126       -n, --numeric
127           List numeric user and group IDs
128
129       -v, --version
130           Print the version of getfacl and exit.
131
132       -h, --help
133           Print help explaining the command line options.
134
135       --  End  of  command  line options. All remaining parameters are inter‐
136           preted as file names, even if they start with a dash character.
137
138       -   If the file name parameter is  a  single  dash  character,  getfacl
139           reads a list of files from standard input.
140
141

CONFORMANCE TO POSIX 1003.1e DRAFT STANDARD 17

143       If the environment variable POSIXLY_CORRECT is defined, the default be‐
144       havior of getfacl changes in the following ways: Unless otherwise spec‐
145       ified,  only the ACL is printed. The default ACL is only printed if the
146       -d option is given. If no command line parameter is given, getfacl  be‐
147       haves  as  if it was invoked as ``getfacl -''.  No flags comments indi‐
148       cating the setuid, setgid, and sticky bits are generated.
149

AUTHOR

151       Andreas Gruenbacher, <andreas.gruenbacher@gmail.com>.
152
153       Please send your bug reports and comments to the above address.
154

SEE ALSO

156       setfacl(1), acl(5)
157
158
159
160May 2000                      ACL File Utilities                    GETFACL(1)
Impressum