Linux Commands / IT Support Guides
Inspect Linux ACLs with getfacl
Read the extra user and group permissions on a Linux file with getfacl.
Environment and inputs: Linux · Bash-compatible shell; package and service names vary by distribution
Understand the problem
Identify the exact file and the affected account. Use a Linux host with the getfacl utility installed.
Run the command
Run getfacl with the file path. Replace /srv/shared/report.txt with your file, and quote the path if it contains spaces.
getfacl /srv/shared/report.txt
Read the output
For example, user:alex:rw- with an effective value of r-- means Alex can read the file but cannot write it through that entry. The ACL mask caps the permissions of named users, named groups and the owning group.
Choose the next step
Compare the effective value with what the user needs. Also check whether the user can traverse the parent directories.
Before making changes
Save the existing ACL before requesting a change. After an approved change, check access from the affected account.