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
Engage your cerebral cortex
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