How can I list all files without 777 or 775 file permissions?
Asked
Active
Viewed 2,782 times
1 Answers
4
find <some dirs> \! \( -perm 0777 -o -perm 0775 \)

Ignacio Vazquez-Abrams
- 45,939
- 6
- 79
- 84
-
Is this listing all files without these permissions, or all files with these permissions... it seems like it's with these permissions... – Ben Oct 07 '10 at 01:20
-
The `!` reverses the following predicate. – Ignacio Vazquez-Abrams Oct 07 '10 at 01:22
-
Wouldn't this specification not take into account SGID, SUID, and items marked with the sticky bit? – mdpc Oct 07 '10 at 18:19
-
@mdpc: Sure, but those aren't really "775" or "777" either. – Ignacio Vazquez-Abrams Oct 08 '10 at 02:45