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

NAME

6       getfacl - get file access control lists
7

SYNOPSIS

9       getfacl -dRLPvh] file ...
10
11       getfacl -dRLPvh] -
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:  user::rwx
29               5:  user:joe:rwx               #effective:r-x
30               6:  group::rwx                 #effective:r-x
31               7:  group:cool:r-x
32               8:  mask:r-x
33               9:  other:r-x
34              10:  default:user::rwx
35              11:  default:user:joe:rwx       #effective:r-x
36              12:  default:group::r-x
37              13:  default:mask:r-x
38              14:  default:other:---
39
40
41       Lines 4, 6 and 9 correspond to the user, group and other fields of  the
42       file mode permission bits. These three are called the base ACL entries.
43       Lines 5 and 7 are named user and named group entries.  Line  8  is  the
44       effective  rights  mask. This entry limits the effective rights granted
45       to all groups and to named users. (The file owner  and  others  permis‐
46       sions  are not affected by the effective rights mask; all other entries
47       are.)  Lines 10--14 display the default ACL associated with this direc‐
48       tory.  Directories  may  have a default ACL. Regular files never have a
49       default ACL.
50
51       The default behavior for getfacl is to display both  the  ACL  and  the
52       default ACL, and to include an effective rights comment for lines where
53       the rights of the entry differ from the effective rights.
54
55       If output is to a terminal, the effective rights comment is aligned  to
56       column  40.  Otherwise,  a single tab character separates the ACL entry
57       and the effective rights comment.
58
59       The ACL listings of multiple files are separated by blank  lines.   The
60       output of getfacl can also be used as input to setfacl.
61
62
63   PERMISSIONS
64       Process  with search access to a file (i.e., processes with read access
65       to the containing directory of a file) are also granted read access  to
66       the  file's  ACLs.   This  is analogous to the permissions required for
67       accessing the file mode.
68
69
70   OPTIONS
71       --access
72           Display the file access control list.
73
74       -d, --default
75           Display the default access control list.
76
77       --omit-header
78           Do not display the comment header (the first three  lines  of  each
79           file's output).
80
81       --all-effective
82           Print  all  effective  rights  comments,  even  if identical to the
83           rights defined by the ACL entry.
84
85       --no-effective
86           Do not print effective rights comments.
87
88       --skip-base
89           Skip files that only have the base ACL entries (owner, group,  oth‐
90           ers).
91
92       -R, --recursive
93           List the ACLs of all files and directories recursively.
94
95       -L, --logical
96           Logical  walk,  follow  symbolic  links. The default behavior is to
97           follow symbolic link arguments, and to skip symbolic links  encoun‐
98           tered in subdirectories.
99
100       -P, --physical
101           Physical  walk,  skip  all symbolic links. This also skips symbolic
102           link arguments.
103
104       --tabular
105           Use an alternative tabular output format. The ACL and  the  default
106           ACL  are  displayed  side by side. Permissions that are ineffective
107           due to the ACL mask entry are displayed capitalized. The entry  tag
108           names  for the ACL_USER_OBJ and ACL_GROUP_OBJ entries are also dis‐
109           played in capital letters, which helps in spotting those entries.
110
111       --absolute-names
112           Do not strip leading slash characters (`/'). The  default  behavior
113           is to strip leading slash characters.
114
115       --version
116           Print the version of getfacl and exit.
117
118       --help
119           Print help explaining the command line options.
120
121       --  End  of  command  line options. All remaining parameters are inter‐
122           preted as file names, even if they start with a dash character.
123
124       -   If the file name parameter is  a  single  dash  character,  getfacl
125           reads a list of files from standard input.
126
127

CONFORMANCE TO POSIX 1003.1e DRAFT STANDARD 17

129       If  the  environment  variable  POSIXLY_CORRECT is defined, the default
130       behavior of getfacl changes in the  following  ways:  Unless  otherwise
131       specified,  only the ACL is printed. The default ACL is only printed if
132       the -d option is given. If no command line parameter is given,  getfacl
133       behaves as if it was invoked as ``getfacl -''.
134

AUTHOR

136       Andreas Gruenbacher, <a.gruenbacher@bestbits.at>.
137
138       Please send your bug reports and comments to the above address.
139

SEE ALSO

141       setfacl(1), acl(5)
142
143
144
145May 2000                      ACL File Utilities                    GETFACL(1)
Impressum