getfacl

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

Syntax:

getfacl [-q] [path ...]

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 Ctrl D .

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 BlackBerry 10 OS 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.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus