LinuxCommandLibrary

getfacl

TLDR

Show ACL

$ getfacl path/to/file
copy
Show with numeric IDs
$ getfacl -n path/to/file
copy
Tabular output
$ getfacl -t path/to/file
copy

SYNOPSIS

getfacl [OPTIONS] files...

DESCRIPTION

getfacl displays file access control lists (ACLs). ACLs provide more fine-grained access control than traditional Unix permissions, allowing permissions for specific users and groups beyond owner/group/other.

PARAMETERS

-n, --numeric

Display numeric user and group IDs
-t, --tabular
Use tabular output format
-a, --access
Display access ACL
-d, --default
Display default ACL
-R, --recursive
Recurse into directories
-p, --absolute-names
Don't strip leading slashes

CAVEATS

ACLs must be supported by the filesystem (mount with acl option). The default ACL only applies to directories and affects newly created files within. Use setfacl to modify ACLs.

HISTORY

getfacl is part of the acl package, providing POSIX ACL support on Linux.

SEE ALSO

setfacl(1), chmod(1)

Copied to clipboard