Sharing a mail folder between Linux and FreeBSD

Ralf Mardorf ralf.mardorf at alice-dsl.net
Mon Jan 28 10:25:57 UTC 2013


On Sun, 2013-01-27 at 23:57 -0500, kpneal at 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 at 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



More information about the freebsd-questions mailing list