Well, that's what the -R option seems like it's supposed to do... I'm wondering of I'm reading it correctly that the
--preserve-root (fail to operate recursively on `/') option may be what you want (given your example)?
Or, maybe using a combination of
find with the
-P option (never follow symbolic links),
xargs and
chmod? Something like
Code:
find -P <path> -type f -print | xargs chmod mode
It would take two passes, one with
-type f for files and another with
-type d for directories