HP3000-L Archives

August 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Thu, 3 Aug 2000 16:05:21 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
"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.

ATOM RSS1 RSS2