Table of Contents

OS - UNIX - Notes

Commands

find

Set different permissions on files and directories

Remove executable for all and rwx for other from files:

find /var/www/directory/ -type f | xargs chmod -x,o-rwx

Remove rwx for other/world from directories:

find /var/www/directory/ -type d | xargs chmod o-rwx