Using find to fix permissions

Locate a file or directory without world readable permission
find . -type f ! -perm -o=r
find . -type d ! -perm -o=r
Fix the problem
find . -type f ! -perm -o=r -exec chmod o+r {} \;
find . -type d ! -perm -o=r -exec chmod o+rx {} \;

Tags: