View Full Version : chmod question

September 11th, 2005, 06:12 PM
Hi all.
I need to change permission for directory and it´s subdirs. Running ´chmod -R a+x some_dir´ changing permissions for all of this directory´s content, including files. How can i change permissions for directory and subdirectories but leave a permissions for files unchanged?

September 11th, 2005, 06:23 PM
You could use find:
find ./ -type d -print0 | xargs -0 chmod permsOr, if you don't want to grant execute on files (unless they already have it) use a+X.