Question : How to chmod and chown all files with a certain permission to a new permission?

In bash shell, how would I conduct a search for all files and folders with permission 777, and change all of those files to chmod 644, and all of those folders to chown nobody and chmod 770?

Answer : How to chmod and chown all files with a certain permission to a new permission?

try:

find /path  -type f -perm 777 -exec chmod 644 {} \;
find /path -type d -perm 777 -exec chown nobody {} \;
find /path -type d -perm 777 -exec chmod 770 {} \;
Random Solutions  
 
programming4us programming4us