I have a directory,
X, which contains many subdirectories (millions of them), which contain files. I have read access to some, but not all, directories and files contained therein.
I need to compile a list of directories and files under
X which I don't have permission to read.
How could I go about this?