change files and directories permissions recursively

find /path/to/base/dir -type d -print0 | xargs -0 chmod 775

find /path/to/base/dir -type f -print0 | xargs -0 chmod 664