Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I see the following question describing how to find group writeable files: How can I find all PHP files with group write permissions?

But I want files that are not group writable! (Also, I couldn't comment on the above question).

Google lets me down (as 'find' isn't such a unique keyword).

share|improve this question
1  
Which OS is this for? –  Brad Patton Apr 25 '13 at 15:06
    
I updated the tag based on the linked question. Please change if not correct. –  Brad Patton Apr 25 '13 at 15:17
    
You can't comment on other people's posts until you have 50 rep, which is why you couldn't comment there. –  ChimneyImp Apr 25 '13 at 15:32
    
I really hate that basic functionality requires rep... but I guess you'll just mark me down for being off topic ;-) –  Dan Bolser May 1 '13 at 13:54
add comment

1 Answer

up vote 4 down vote accepted

Assuming that the linked question would run on your system, you can invert the match with !:

find ! -perm -g=w

Also, you can read the documentation for find by looking into the manpages:

man find
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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