getfacl

Updated: May 06, 2022

Get the access control list (ACL) for files or directories

Syntax:

getfacl [-q] [path ...]

Runs on:

QNX Neutrino

Options:

-q
Be quiet; don't write commented information about the file or directory name and ownership. 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. For an overview of ACLs, see Access Control Lists (ACLs) in the QNX Neutrino User's Guide.

Examples:

Get the ACL for my_file:

# getfacl my_file
# file: my_file
# owner: mabel
# group: docs
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.