From owner-freebsd-questions Sun Apr 30 5:21:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from merlin.prod.itd.earthlink.net (merlin.prod.itd.earthlink.net [207.217.120.156]) by hub.freebsd.org (Postfix) with ESMTP id 4044E37B601 for ; Sun, 30 Apr 2000 05:21:08 -0700 (PDT) (envelope-from bduk@earthlink.net) Received: from earthlink.net (sdn-ar-003orportP157.dialsprint.net [63.178.65.93]) by merlin.prod.itd.earthlink.net (8.9.3/8.9.3) with ESMTP id FAA05963; Sun, 30 Apr 2000 05:21:04 -0700 (PDT) Received: (from bduk@localhost) by earthlink.net (8.9.3/8.9.3) id KAA14747; Sun, 30 Apr 2000 10:21:33 -0700 (PDT) (envelope-from bduk) Date: Sun, 30 Apr 2000 10:21:33 -0700 (PDT) Message-Id: <200004301721.KAA14747@earthlink.net> From: Derrick Baumer To: dean@odyssey.apana.org.au Cc: freebsd-questions@FreeBSD.ORG In-reply-to: (message from Dean Hollister on Sun, 30 Apr 2000 18:54:36 +0800 (WST)) Subject: Re: chmod Reply-To: bduk@earthlink.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > From: Dean Hollister > > 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. > > Any ideas would be very warmly appreciated. If you can find someone who isn't too paranoid about security issues, or someone who knows you that is running the same version of the system as you are, you can get them to execute ls -lR /usr > listing cat listing | mail you@email.address Then write a quick perl script to set your permissions to the same permissions as those shown in the file. I am personally a paranoid type, but I might be able to throw a script together to do the job for you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message