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).

  • 1
    Which OS is this for? Apr 25, 2013 at 15:06
  • I updated the tag based on the linked question. Please change if not correct. Apr 25, 2013 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, 2013 at 15:32

2 Answers 2


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

On BSD derived Unix system (macOS, FreeBSD, ...) you need to add a path to find. So for a more compatible version add . to search in the current directory and ! to invert the match:

find . ! -perm -g=w

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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