getfacl man page on aLinux

Man page or keyword search:  
man Server   7435 pages
apropos Keyword Search (all sections)
Output format
aLinux logo
[printable version]

GETFACL(1)		     Access Control Lists		    GETFACL(1)

       getfacl - get file access control lists

       getfacl [-dRLPvh] file ...

       getfacl [-dRLPvh] -

       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
       permission bits.

       The output format of getfacl is as follows:
	       1:  # file: somedir/
	       2:  # owner: lisa
	       3:  # group: staff
	       4:  user::rwx
	       5:  user:joe:rwx		      #effective:r-x
	       6:  group::rwx		      #effective:r-x
	       7:  group:cool:r-x
	       8:  mask:r-x
	       9:  other:r-x
	      10:  default:user::rwx
	      11:  default:user:joe:rwx	      #effective:r-x
	      12:  default:group::r-x
	      13:  default:mask:r-x
	      14:  default:other:---

       Lines 4, 6 and 9 correspond to the user, group and other fields of  the
       file mode permission bits. These three are called the base ACL entries.
       Lines 5 and 7 are named user and named group entries.  Line  8  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 10--14 display the default ACL associated with this direc‐
       tory.  Directories  may	have a default ACL. Regular files never have a
       default ACL.

       The default behavior for getfacl is to display both  the	 ACL  and  the
       default ACL, and to include an effective rights comment for lines where
       the rights of the entry differ from the effective rights.

       If output is to a terminal, the effective rights comment is aligned  to
       column  40.  Otherwise,	a single tab character separates the ACL entry
       and the effective rights comment.

       The ACL listings of multiple files are separated by blank  lines.   The
       output of getfacl can also be used as input to setfacl.

       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.

       -d, --default
	   Display the default access control list.

	   Do not display the comment header (the first three  lines  of  each
	   file's output).

	   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‐

       -R, --recursive
	   List the ACLs of all files and directories recursively.

       -L, --logical
	   Logical  walk,  follow  symbolic  links. The default behavior is to
	   follow symbolic link arguments, and to skip symbolic links  encoun‐
	   tered in subdirectories.

       -P, --physical
	   Physical  walk,  skip  all symbolic links. This also skips symbolic
	   link arguments.

	   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.

	   Print the version of getfacl and exit.

	   Print help explaining the command line options.

       --  End	of  command  line options. All remaining parameters are inter‐
	   preted as file names, even if they start with a dash character.

       -   If the file name parameter is  a  single  dash  character,  getfacl
	   reads a list of files from standard input.

       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 -''.

       Andreas Gruenbacher, <>.

       Please send your bug reports and comments to the above address.

       setfacl(1), acl(5)

May 2000		      ACL File Utilities		    GETFACL(1)

List of man pages available for aLinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net