[NBLUG/talk] chmod question

Bob Blick bobblick at covad.net
Thu Oct 9 11:32:01 PDT 2003


How can I get chmod to only affect files, not directories? Like if root
has done:
chmod -R +x * to my stuff instead of chmod -R +X *

and now _I_ need to fix my own stuff. I have many many levels of
directories and files and I am not root.

I can't do this:
chmod -R -x *
chmod -R +X *

because the first line will fail because it can no longer work recursively
after taking execute permissions away from the first layer of
subdirectories.

Any help will be appreciated.

Thanks,

Bob





More information about the talk mailing list