Change Permissions of Specific File Types

To change the file permissions for all PHP files to 754:

find . -type f -name '*.php' -exec chmod 754 {} \;

To find all files with permissions 754:

find . -perm -754

To find all files that are not writable by the owner:

find . ! -perm -u+w

By cyberx86

Just a random guy who dabbles with assorted technologies yet works in a completely unrelated field.

Leave a comment

Your email address will not be published. Required fields are marked *