Hi all,
I have a directory that I use as an SMB share that is used by both Windows and Linux computers. Over time the permissions have gone all over the place. I've now solved that problem so that all
newly created files/directories will have appropriate permissions. However, most - if not all - exisiting files have inconsistent permissions that I'd like to remedy. Now I'm talking about something like 6,000 odd files so I'm not about to do it manually. The catch is that I want regular files to have one kind of permissions and directories another (as you'd probably expect) so blatantly passing the "-R" switch to
chmod isn't going to solve my problem.
I've also tried using the
find command like so:
Code:
chmod 664 `find -type f`
Unfortunately,
chmod complains that the argument list is too long.
So does anyone know of an automated (iterative, maybe) method to accomplish this? I'm sure there must be since to me this sounds like a problem someone's had before. Unfortunately, google didn't come up with anything useful (at least not for the search strings I was using).
Thanks is advance.