Intermediate Package: acl

getfacl

Display the Access Control List of a file or directory.

Syntax

getfacl file

Description

getfacl prints all ACL entries on a file, including the standard owner/group/other permissions and any extra user or group grants added with setfacl, which is essential when troubleshooting unexpected access.

Examples

getfacl file.txt
Show all ACL entries for a file
getfacl -R /shared
Recursively display ACLs for an entire directory tree

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux

Put it into practice

Learn this in context