System Administration Guide, Volume 2

How to Check If a File Has an ACL

Check if a file has an ACL by using the ls command.


$ ls -l filename

filename

Specifies the file or directory. 

A plus sign (+) to the right of the mode field indicates the file has an ACL.


Note -

Unless you have added ACL entries for additional users or groups on a file, a file is considered to be a "trivial" ACL and the + will not display.


Example--Checking If a File Has an ACL

The following example shows that ch1.doc has an ACL, because the listing has. a `+' to the right of the mode field.


$ ls -l ch1.doc
-rwxr-----+  1 nathan   sysadmin      167 Nov 11 11:13 ch1.doc