getfacl
QNX SDP8.0Utilities ReferenceUtilities
Get the access control list (ACL) for files or directories
Syntax:
getfacl [-q] [path ...]
Runs on:
QNX OS
Options:
- -q
- Be quiet; don't write commented information about the file or directory name, ownership, and flags. This is useful when you're dealing with paths with unprintable characters.
- path ...
- The file or directory that you want to get the ACL for. If you specify a hyphen (-) or don't specify any paths, getfacl reads them, one per line, from standard input until you press CtrlD.
Description:
The getfacl utility gets the access control list for files or directories. The comments before the ACL lists the file or directory's
name, ownership, and flags. The flags represent the setuid, setgid, and sticky bits, which are indicated as, respectively, s
, s
, and
t
. A hyphen (-
) is used to replace any of those bits that aren't set.
For an overview of ACLs, see
Access Control Lists (ACLs)
in the QNX OS User's Guide.
Examples:
Get the ACL for my_file:
# getfacl my_file
# file: my_file
# owner: mabel
# group: docs
# flags: ---
user::rwx
group::rwx
group:techies:r-x
mask::rwx
other::---
Get the ACL, but suppress the comments:
# getfacl -q my_file
user::rwx
group::rwx
group:techies:r-x
mask::rwx
other::---
Exit status:
- 0
- Success.
- > 0
- An error occurred.
Page updated: