Reputation: 302
I want to get all files which do not have read permissions for others.
I've tried find . -type f -perm -o-r
and find . -type f -perm -o
But they return all files. Seems I'm doing something wrong.
Thanks.
Upvotes: 0
Views: 99
Reputation: 241858
Just search for anything that doesn't have the read permission for others:
find -not -perm -o=r
Upvotes: 1