Home » Questions » Computers [ Ask a new question ]

Find all files on server with 777 permissions

Find all files on server with 777 permissions

I'm looking for a Linux command to go through all the directories on my server and find all files with 777 permission. The output would be a list of all those files with full path.

Asked by: Guest | Views: 287
Total answers/comments: 1
Guest [Entry]

"You can also change the permissions or ownership of all those files resulting from the find execution using the -exec option to avoid change them manually.
Exempli gratia: In a web server you could need to grant the group to write files:

find / -type f -perm 0777 -exec chmod 775 {} \; -exec chgrp -R www {} \;"