Get the access control list (ACL) for files or directories
getfacl [-q] [path ...]
- 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 .
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.
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::---
- > 0
- An error occurred.
Last modified: 2013-12-21