5

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?

1 Answer 1

8

You can do that with this simple find command :

find . ! -readable

Pay attention to use it as your user and not as root or all files would appear as readable...

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.