Print this page
12288 getfacl and setfacl could stand improvement
   1 GETFACL(1)                       User Commands                      GETFACL(1)
   2 
   3 
   4 
   5 NAME
   6        getfacl - display discretionary file information
   7 
   8 SYNOPSIS
   9        getfacl [-ad] file...
  10 
  11 
  12 DESCRIPTION
  13        For each argument that is a regular file, special file, or named pipe,
  14        the getfacl utility displays the owner, the group, and the Access
  15        Control List (ACL). For each directory argument, getfacl displays the
  16        owner, the group, and the ACL and/or the default ACL. Only directories
  17        contain default ACLs.
  18 
  19 







  20        The getfacl utility may be executed on a file system that does not
  21        support ACLs. It reports the ACL based on the base permission bits.
  22 
  23 
  24        With no options specified, getfacl displays the filename, the file
  25        owner, the file group owner, and both the ACL and the default ACL, if
  26        it exists.
  27 
  28 OPTIONS
  29        The following options are supported:
  30 
  31        -a
  32              Displays the filename, the file owner, the file group owner, and
  33              the ACL of the file.
  34 
  35 
  36        -d
  37              Displays the filename, the file owner, the file group owner, and
  38              the default ACL of the file, if it exists.
  39 


 213 
 214 
 215        /etc/group
 216                       group file
 217 
 218 
 219 ATTRIBUTES
 220        See attributes(5) for descriptions of the following attributes:
 221 
 222 
 223 
 224 
 225        +--------------------+-----------------+
 226        |  ATTRIBUTE TYPE    | ATTRIBUTE VALUE |
 227        +--------------------+-----------------+
 228        |Interface Stability | Evolving        |
 229        +--------------------+-----------------+
 230 
 231 SEE ALSO
 232        chmod(1), ls(1), setfacl(1), acl(2), aclsort(3SEC), group(4),
 233        passwd(4), attributes(5)
 234 
 235 NOTES
 236        The output from getfacl is in the correct format for input to the
 237        setfacl -f command. If the output from getfacl is redirected to a file,
 238        the file may be used as input to setfacl. In this way, a user may
 239        easily assign one file's ACL to another file.
 240 
 241 
 242 
 243                                November 5, 1994                     GETFACL(1)
   1 GETFACL(1)                       User Commands                      GETFACL(1)
   2 
   3 
   4 
   5 NAME
   6        getfacl - display discretionary file information
   7 
   8 SYNOPSIS
   9        getfacl [-ad] file...
  10 
  11 
  12 DESCRIPTION
  13        For each argument that is a regular file, special file, or named pipe,
  14        the getfacl utility displays the owner, the group, and the Access
  15        Control List (ACL). For each directory argument, getfacl displays the
  16        owner, the group, and the ACL and/or the default ACL. Only directories
  17        contain default ACLs.
  18 
  19 
  20        The getfacl utility will fail if executed on a file system that
  21        supports NFSv4 ACLs.  See acl(5) for a description of the difference
  22        between the older POSIX-draft ACLs and the newer NFSv4 ACLs.  The ls(1)
  23        utility, when used with the -v or -V options, will display ACLs on all
  24        types of file system.
  25 
  26 
  27        The getfacl utility may be executed on a file system that does not
  28        support ACLs. It reports the ACL based on the base permission bits.
  29 
  30 
  31        With no options specified, getfacl displays the filename, the file
  32        owner, the file group owner, and both the ACL and the default ACL, if
  33        it exists.
  34 
  35 OPTIONS
  36        The following options are supported:
  37 
  38        -a
  39              Displays the filename, the file owner, the file group owner, and
  40              the ACL of the file.
  41 
  42 
  43        -d
  44              Displays the filename, the file owner, the file group owner, and
  45              the default ACL of the file, if it exists.
  46 


 220 
 221 
 222        /etc/group
 223                       group file
 224 
 225 
 226 ATTRIBUTES
 227        See attributes(5) for descriptions of the following attributes:
 228 
 229 
 230 
 231 
 232        +--------------------+-----------------+
 233        |  ATTRIBUTE TYPE    | ATTRIBUTE VALUE |
 234        +--------------------+-----------------+
 235        |Interface Stability | Evolving        |
 236        +--------------------+-----------------+
 237 
 238 SEE ALSO
 239        chmod(1), ls(1), setfacl(1), acl(2), aclsort(3SEC), group(4),
 240        passwd(4), acl(5), attributes(5)
 241 
 242 NOTES
 243        The output from getfacl is in the correct format for input to the
 244        setfacl -f command. If the output from getfacl is redirected to a file,
 245        the file may be used as input to setfacl. In this way, a user may
 246        easily assign one file's ACL to another file.
 247 
 248 
 249 
 250                                February 8, 2020                     GETFACL(1)