How to Recursively Set Permissions for Directories Only
My problem is as such:
I have a directory that contains files as well as other directories (may be nested).
Currently, the files have permission 400 (r--------),
and the directories have permission 500 (dr-x------).
What i want to do, is to chmod the files and directories such that
the files have permission 644 (rw-r--r--),
and the directories have permission 755 (drwxr-xr-x).
Now, i have easily set the permission of all files AND directories to 644 by doing:
chmod -R u+w *
chmod -R ugoa+r *
The remaining step will be to set the permissions for the directories to 755, while leaving the permissions for the files at 644.
TIA and Regards,