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'm working with a system where a few files and maps seem to have permission 777. I want to change them to a more secure chmod, but I don't have a list of all the 777-files.

I could do a terminal command like ls -l -R , but the filesystem has thousands of files, so that's not really efficient.

Is there a query-like way to find all te files that have 777 for permission? like ls -l -R where chmod = 777 or something, or otherwise maybe a php solution? I don't know how that would work.


share|improve this question

migrated from Mar 27 '12 at 11:54

This question came from our site for professional and enthusiast programmers.

See find. – Joachim Pileborg Mar 27 '12 at 10:50


find ./  -perm 777

For more information, check:

man find
share|improve this answer

You must log in to answer this question.