Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 2014 23:09:16 +0100
From:      =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= <trasz@FreeBSD.org>
To:        Mark Felder <feld@FreeBSD.org>
Cc:        FreeBSD current <freebsd-current@freebsd.org>
Subject:   Re: mtree acl support
Message-ID:  <3607BA99-E4C9-4A0B-9BF1-7081DD79700B@FreeBSD.org>
In-Reply-To: <1389904576.2313.71707745.52B4D2D1@webmail.messagingengine.com>
References:  <1389710847.2685.70601137.72B5C024@webmail.messagingengine.com> <93FD368C-21D1-4A5F-986A-859D83AFB5BF@kientzle.com> <1389904576.2313.71707745.52B4D2D1@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Wiadomo=9C=E6 napisana przez Mark Felder w dniu 16 sty 2014, o godz. =
21:36:
> On Wed, Jan 15, 2014, at 23:11, Tim Kientzle wrote:
>>=20
>> On Jan 14, 2014, at 6:47 AM, Mark Felder <feld@freebsd.org> wrote:
>>=20
>>> I was recently talking to someone about how one would backup / =
restore
>>> ACLs reliably. I didn't see any mention of ACLs in the mtree man =
page
>>> and after a quick google I came upon this old mailing list post:
>>>=20
>>> =
http://lists.freebsd.org/pipermail/freebsd-hackers/2008-April/024173.html
>>>=20
>>> patch in list is here: =
http://heka.cenkes.org/sat/diffs/mtree_acl.diff
>>> I've mirrored it here: https://feld.me/freebsd/mtree_acl.diff
>>>=20
>>> This old patch appears to still apply cleanly. I hate to see a patch =
die
>>> and be forgotten.
>>=20
>> One problem that =91tar=92 has addressed (inspired by Joerg =
Schilling=92s
>> work on star) is to permit ACLs to be restored even if the user =
database
>> is out of date.
>>=20
>> This is done by including a fourth field in each ACE with the
>> numeric user ID.
>>=20
>> I suspect you want to do the same for mtree.  I thought
>> I remembered acl_to_text having an option to use
>> an extended text format, so it might be a trivial change.
>>=20
>=20
> As long as it's not default. One of the most convenient ways to change =
a
> user's UID (or multiple users!) is to do an mtree backup, change
> UID/GID, and then re-apply mtree backup. Every file that the user(s)
> previously owned will be automatically changed to the new UID/GID for
> you :-)

I don't think the functionality above would interfere with that in any =
way.
The owner entries ("user:" for POSIX, "owner@" for NFSv4 ACLs) are =
stored
in a different way, and they never have the appended ID.

(Besides, why not just "find ./ -user XXX -print0 | xargs -0 chown =
YYY"?)

--=20
If you cut off my head, what would I say?  Me and my head, or me and my =
body?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3607BA99-E4C9-4A0B-9BF1-7081DD79700B>