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

Thanks!

share|improve this question

migrated from stackoverflow.com Mar 27 '12 at 11:54

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

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

1 Answer 1

Try:

find ./  -perm 777

For more information, check:

man find
share|improve this answer

Your Answer

 
discard

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