From owner-freebsd-questions Sun Apr 30 11: 7:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id 2AA9137B8A6 for ; Sun, 30 Apr 2000 11:07:50 -0700 (PDT) (envelope-from DougB@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id LAA88345; Sun, 30 Apr 2000 11:07:39 -0700 (PDT) (envelope-from DougB@gorean.org) Message-ID: <390C766B.E3FD7AE6@gorean.org> Date: Sun, 30 Apr 2000 11:07:39 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 5.0-CURRENT-0422 i386) X-Accept-Language: en MIME-Version: 1.0 To: Dean Hollister Cc: FreeBSD Questions Subject: Re: chmod References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dean Hollister wrote: > > Hiyall, > > I have a Member who 'accidentally' did: > > chmod -R 777 /usr > > This has apparently broken a large number of items in his system. Does > anyone have suggestions on how to fix all of these permissions problems? > > Many files/programs are setuid owner or setuid group. Also, many of the > directory permissions appear wrong also. You could fix the directory permissions in one fell swoop with mtree, but that won't get you very far. Your best solution is to make world, assuming that your compiler still works (which it should). Keep in mind though that this won't fix the things in /usr/local, which might take some additional work. Good luck, Doug -- Excess on occasion is exhilarating. It prevents moderation from acquiring the deadening effect of a habit. -- W. Somerset Maugham To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message