18 Apr 2009

linux chmod files or directory only recursively

From the command line:

-bash-3.00$ find ./ -type f -exec chmod 600 {} \;
-bash-3.00$ find ./ -type d -exec chmod 700 {} \;