"Michael D. Hensley" wrote:
> Here's the "official" workaround:
>
> :HELLO MANAGER.SYS
> :SH
> $ cd /tmp
> $ find /usr/local -type d | xargs ls -ld > before.list
> $ find /usr/local -type d | xargs chmod 755
> $ find /usr/local -type d | xargs chown MANAGER.SYS:SYS
> $ find /usr/local -type d | xargs ls -ld > after.list
Cleaning up EVERYTHING below /usr/local may possibly be overkill and not
appropriate for all machines.
On my own machine, I have stuff other than gcc below /usr/local, and I
definitely would NOT want to do both of these modifications to my non-gcc
stuff.
Moral of the story: exercise caution and good knowledge of your own environment
before doing any recursive POSIX commands like "find" that pipe into
modification commands like "chmod" or "chown".
- Mark B.