I'm using the following command to perform permissions fixes:
sudo find . -type f -exec chmod 470 {} \;
There are many thousands of files to update the permissions on. It also spikes the CPU usage during the run.
A subsequent call that further modifies file permissions using a pure chmod recursive update doesn't spike the CPU
sudo chmod 770 -R /path/to/directory
What I am looking for:
- A way to reduce CPU usage during this call
- Potentially filtering to files that need the updated permissions