Finding Files with Applied ACL — RHEL 5
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Following a discussion on Freenode’s #fedora, I set out to find a quick and easy way to find all files (or directories) that have a non-default ACL applied.
Fortunately, pylibacl exists!
Assuming you’ve installed pylibacl, you can now run a simple find command to locate your files:
# the new line is important, and so is the space before the print statement.
# it should work if pasted.
find . -type f -exec /usr/bin/python -c "import posix1e;
if posix1e.has_extended('{}'):
print '{}'
" \;


