From owner-freebsd-questions@FreeBSD.ORG Tue Sep 30 13:00:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 860AB10656AF for ; Tue, 30 Sep 2008 13:00:51 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id 31F4F8FC1E for ; Tue, 30 Sep 2008 13:00:50 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from localhost (localhost [127.0.0.1]) by ezekiel.daleco.biz (8.14.2/8.13.8) with ESMTP id m8UD0nuZ033335; Tue, 30 Sep 2008 08:00:49 -0500 (CDT) (envelope-from kdk@daleco.biz) X-Virus-Scanned: amavisd-new at daleco.biz Received: from ezekiel.daleco.biz ([127.0.0.1]) by localhost (ezekiel.daleco.biz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fW3gORbuCnam; Tue, 30 Sep 2008 08:00:46 -0500 (CDT) Received: from archangel.daleco.biz (dsl.daleco.biz [209.125.108.70]) by ezekiel.daleco.biz (8.14.2/8.13.8) with ESMTP id m8UD0g7U033327; Tue, 30 Sep 2008 08:00:42 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <48E222F4.1030307@daleco.biz> Date: Tue, 30 Sep 2008 08:00:36 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.16) Gecko/20080719 SeaMonkey/1.1.11 MIME-Version: 1.0 To: freebsd-questions References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Mike Price Subject: Re: Command to rechown X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2008 13:00:51 -0000 Mike Price wrote: > I had to ( chown -R /etc/ ) I to edit the ( pf.conf ), how do I rechowm or > restore ( /etc ) ? > > Can you please send me the command. Hmm, why did you have to chown an entire directory to edit one file? su(1), and, perhaps even better, sudo(8) are meant for such things AFAIK. As for restoring permissions on /etc/, mtree(8) is your friend ... I'd recommend taking a look at the manpage, however, because IANAE. However, all disclaimers included, I *think* you want % cd / % mtree -U -f /etc/mtree/BSD.root.dist Kevin Kinsey -- It is now pitch dark. If you proceed, you will likely fall into a pit.