find . -type f -exec chmod 644 {} + -o -type d -exec chmod 755 {} +
To
chmod -R a+rX .
This recursively adds the read bit to all files, and if the execute bit is set for user, group, or other on the file, it is applied for all else. If you're updating 10000+ files, this will run much faster. (And it's easier to type.)
No comments:
Post a Comment