find files with ACLs set
How can I find all files with some extended ACLs set, i.e. those with a little +
at the end of the permission flags shown by ls -l
.
I could not find a corresponding flag for find
. My naive approach would be a find
combined with ls -l
and a grep
. But I don't think this is nice.
Does someone have an idea?
Solution 1:
getfacl
can dump ACLs recursively, and it has a --skip-base
option for ignoring files without ACLs.
getfacl -R -s -p /directory | sed -n 's/^# file: //p'