tags:

views:

319

answers:

4

I just want to change permissions on directories, not the files contained within.

+1  A: 

Assuming you're in the directory you want to start in:

find . -type d | xargs chmod 755

or whatever permissions you want.

John
+4  A: 

find . -type d -exec chmod 755 {} +

dfa
A: 

From where you want to change

find . -type d | xargs chmod a+x
LB
+3  A: 
find . -type d -exec chmod 755 {} \;
samoz
That will change files, not just directories.
chaos
Ahh just kidding then.
samoz