From owner-freebsd-questions@FreeBSD.ORG Mon Jan 28 10:25:57 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7916D3C5 for ; Mon, 28 Jan 2013 10:25:57 +0000 (UTC) (envelope-from ralf.mardorf@alice-dsl.net) Received: from smtp-out03.alice-dsl.net (smtp-out03.alice-dsl.net [88.44.63.5]) by mx1.freebsd.org (Postfix) with ESMTP id 16DEE946 for ; Mon, 28 Jan 2013 10:25:56 +0000 (UTC) Received: from out.alice-dsl.de ([192.168.125.59]) by smtp-out03.alice-dsl.net with Microsoft SMTPSVC(6.0.3790.3959); Mon, 28 Jan 2013 11:22:14 +0100 Received: from [85.182.18.100] ([85.182.18.100]) by out.alice-dsl.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 28 Jan 2013 11:22:00 +0100 Message-ID: <1359368519.2199.38.camel@precise> Subject: Re: Sharing a mail folder between Linux and FreeBSD From: Ralf Mardorf To: freebsd-questions@freebsd.org Date: Mon, 28 Jan 2013 11:21:59 +0100 In-Reply-To: <20130128045712.GA47538@neutralgood.org> References: <20130126002418.GA73521@neutralgood.org> <1359339846.2513.56.camel@q> <20130128045712.GA47538@neutralgood.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-OriginalArrivalTime: 28 Jan 2013 10:22:00.0711 (UTC) FILETIME=[4F33D170:01CDFD41] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 10:25:57 -0000 On Sun, 2013-01-27 at 23:57 -0500, kpneal@pobox.com wrote: > On Mon, Jan 28, 2013 at 03:24:06AM +0100, Ralf Mardorf wrote: > > On Fri, 2013-01-25 at 19:24 -0500, kpneal@pobox.com wrote: > > > You can use mtree against the spec files in /etc/mtree/ to check for and > > > fix incorrect permissions and owners on base system files. It won't help > > > with /usr/local, but at least you can get the base straight. > > > > > > As root, from the root directory, something like this: > > > mtree -U -f /etc/mtree/BSD.root.dist > > > > > > There are other spec files in that directory. Poke around. > > > > So mtree can't fix /usr/local and poking around without knowledge is > > asking for trouble :(. > > > > /etc/mtree/BSD.root.dist is for the whole base? > > Darn. I just looked and it looks like the stock mtree files just give the > permissions of _directories_. They don't give the permissions (and owners) > of files. > > Well, one thing you can do is unpack the OS distribution somewhere else > and then use mtree to create a manifest from that. That will also give > you a single manifest instead of the multiple ones from "/etc/mtree". > That's more work than I was hoping but still less than a full reinstall. I've to search the emails, but IIRC there was an option to get the owner from a dump backup. Regards, Ralf