Date: Mon, 28 Jan 2013 11:21:59 +0100 From: Ralf Mardorf <ralf.mardorf@alice-dsl.net> To: freebsd-questions@freebsd.org Subject: Re: Sharing a mail folder between Linux and FreeBSD Message-ID: <1359368519.2199.38.camel@precise> In-Reply-To: <20130128045712.GA47538@neutralgood.org> References: <op.wrhkgfqyqhadp0@freebsd> <20130126002418.GA73521@neutralgood.org> <1359339846.2513.56.camel@q> <20130128045712.GA47538@neutralgood.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1359368519.2199.38.camel>