chmod + umask for a whole dir tree
If I would want to change the permission in a whole directory tree (many many subdirs everywhere, and file), let's say I want directories to have 755 and regular files to have 644. IIRC I can use umask to mask away some bits and then do a chmod.
My questions are: can I make umask differ between directories and file. And should I do a chmod 777 after making the umask.
Or am I out riding my bike in the wrong park?