Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Set the global umask default value' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Set the global umask default value
Authored by: taxi on Jun 27, '04 12:38:20AM

I have a similar thing set up to allow shared R&W access to am iTunes library, and I have a sneaking suspicion that chmod barfs when more than about 2000 files are being processed.

A nicer method would be to only change files that have the wrong permissions:

find /Users/*/Public/ -not -perm 664 -exec chmod 775 {};

but this gives me an error about not being able to find the semi-colon under bash!

I tried playing with csh & tcsh, but wildcards appear to work differently!



[ Reply to This | # ]
10.3: Set the global umask default value
Authored by: jtrott on Aug 02, '04 12:42:37AM

You need to escape the ; in bash, use {} \; at the end of your line, that will work.
Thanks,
JT



[ Reply to This | # ]