Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
up vote 14 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
The full command to start searching within current directory would be find . ! -perm -g=w – ualinker Jul 1 '14 at 16:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .