Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 72 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       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, getfacl also displays the default ACL.
       Non-directories cannot have default ACLs.

       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
       permissions are not affected by the effective rights mask;
       all  other entries are.)  Lines 10--14 display the default
       ACL associated with this directory. 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.

           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, others).

       -R, --recursive
           List the ACLs of  all  files  and  directories  recur­

       -L, --logical
           Logical  walk,  follow  symbolic  links.  The  default
           behavior is to follow symbolic link arguments, and  to
           skip symbolic links encountered 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. Permis­
           sions 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.

       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, <a.gruenbacher@computer.org>.

       Please send your bug reports and  comments  to  the  above


       setfacl(1), acl(5)

May 2000                ACL File Utilities             GETFACL(1)



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can choose larger fonts by selecting a different themes.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.11 Seconds