chmod -R only files or only directories?
- From: SpreadTooThin <bjobrien62@xxxxxxxxx>
- Date: Thu, 24 May 2012 09:13:14 -0700 (PDT)
This question started when I wasn't able to tar up a directory because the permissions where set in such a way that tar wasn't able to read some things, even as root,
brute force chmod -R +x on the directory and everything under it helps, but might open up some vulnerabilities.
Can you tell chmod -R +x to only effect directories or conversely only to effect 'actual' files?
Many thanks in advance.