It's recursive call day!

/dev/movabletripe ๏ฟฝ Recursively chmod directories only:
Recursively chmod directories only
June 19th, 2006
find . -type d -exec chmod 755 {} \;

This will recursively search your directory tree (starting at dir โ€˜dotโ€™) and chmod 755 all directories only.

Similarly, the following will chmod all files only (and ignore the directories):

find . -type f -exec chmod 644 {} \;


Had some issues with git similar to these...
Git chmod problem: Checkout screws exec bit . 644 for files, 755 for dirs, apparently because without executable rights, you can only list the dir's contents, not enter them. Whaddyano?

Labels: ,