How can I list all files without 777 or 775 file permissions?

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted
find <some dirs> \! \( -perm 0777 -o -perm 0775 \)
link|improve this answer
Is this listing all files without these permissions, or all files with these permissions... it seems like it's with these permissions... – Webnet Oct 7 '10 at 1:20
The ! reverses the following predicate. – Ignacio Vazquez-Abrams Oct 7 '10 at 1:22
Wouldn't this specification not take into account SGID, SUID, and items marked with the sticky bit? – mdpc Oct 7 '10 at 18:19
@mdpc: Sure, but those aren't really "775" or "777" either. – Ignacio Vazquez-Abrams Oct 8 '10 at 2:45
feedback

Your Answer

 
or
required, but never shown

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