I've been trying to get the -perm option of find to give me all PHP files that are group writable. Should this work?

find -name "*.php" -perm g-w

Thanks!

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted

Try:

find -iname "*.php" -perm -g=w

-g=w means look for files that have this permission set.

link|improve this answer
1  
May want -iname just in case some are .PHP for some bizzare reason. – Daenyth Jun 23 '10 at 19:01
@daenyth - Good point! Added it to my answer! +1 – BloodPhilia Jun 23 '10 at 19:06
Thanks a ton man! – Kristopher Ives Jun 23 '10 at 21:21
@kristopher - You're very welcome! – BloodPhilia Jun 23 '10 at 21:34
feedback

Your Answer

 
or
required, but never shown

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