From owner-freebsd-questions@FreeBSD.ORG Fri Jan 30 11:32:22 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94DD416A4CE for ; Fri, 30 Jan 2004 11:32:22 -0800 (PST) Received: from smtp1.mts.net (smtp1.mts.net [205.200.16.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65CED43D1D for ; Fri, 30 Jan 2004 11:32:21 -0800 (PST) (envelope-from gval@mts.net) Received: from [192.168.0.5] (wnpgmb01dc6-40-11.dynamic.mts.net [142.161.40.11])i0UJWJZR010244 for ; Fri, 30 Jan 2004 13:32:20 -0600 (CST) From: greg To: freebsd-questions@freebsd.org In-Reply-To: <20040130185302.GA83276@happy-idiot-talk.infracaninophile.co.uk> References: <05a601c3e75f$93714810$fa10fea9@bryanuptrvb0jc> <20040130185302.GA83276@happy-idiot-talk.infracaninophile.co.uk> Content-Type: text/plain Message-Id: <1075491131.675.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 30 Jan 2004 13:32:12 -0600 Content-Transfer-Encoding: 7bit Subject: Re: permissions problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 19:32:22 -0000 On Fri, 2004-01-30 at 12:53, Matthew Seaman wrote: > On Sat, Jan 31, 2004 at 02:33:27AM +0800, Spades wrote: > > Hi, > > > > What if one of my admin accidentally did a: > > > > chmod -R o+rx / > > > > and changed my entire system permissions. > > What should i do to restore it? > > > > Please assist. Thanks. > > Several choices: > [... snip ...] > ii) Do a restore from your latest backups. Working out how to merge > any changes to file contents without modifying the file permissions is > left as an exercise for the Or you could write a script to pull only the permissions from backup, and change just the permissions of the files. -- greg