Changing flags only for directoires
I want to chmod all direcotries on one dir, but not files. How can be done that?
I copy tar.gzs from my FAT32 partition. Thy are all chmodded to 777. I want to remove the 'x' flag, but when I do $ chmod a-x * it changes the directories flags too.. that makes them unbrowsable. |
Do something like chmod a-x *.tgz if you want all tgz files for be stripped of the exec bit.
hw |
What about if I had different situation? I want to understand the way to chmod only directories :)
|
Code:
find . -type d -exec chmod +x {} \; |
All times are GMT -5. The time now is 10:25 PM. |