I've been trying to clean up permissions on a few boxes and have been scouring the chmod man as well as all the internet documentation that I an handle without any luck -- so here we go.
Basically, I've got a directory with many sub directories and files -- and I'd like to set the following permissions:
For directories: 770 (u+rwx, g+rwx, o-rwx)
For files: 660 (U+rw, g+rw, a-x, o-rw)
I'd like to try and do this with a single recursive chmod if possible -- as to avoid recursing through each directory and setting file-by-file permissions.
I imagine there's got to be a way to do this without writing a shell script of my own -- but I haven't been able to find anything.
I appreciate your help!