combining find with chmod, but doesn't work...
Hi all,
I found a thread on this forum telling me how to chmod directories separately from files. Quote:
I issued this command: Code:
find ./ -type f | chmod -R 040 * What am I doing wrong? could it be the -R parameter of chmod? best regards, Marvelade |
Since find will march down the dir structure and give you all files (type f), there's no need for the recursive option to chmod.
Code:
find . -type f -exec chmod 040 {} \; |
All times are GMT -5. The time now is 05:59 AM. |