http://qs1969.pair.com?node_id=350350

BlaisePascal has asked for the wisdom of the Perl Monks concerning the following question:

I need to generate a listing of all users who can access each directory in a directory tree, so I can compare those users against a master list of who is supposed to have access. Unix directory access permission require someone to have access to every directory in the path leading up to a given directory, so just checking the permissions on the directory itself isn't enough.

How do I generate a listing of all users who can access a directory?