From owner-freebsd-current@FreeBSD.ORG Thu Jan 16 20:36:21 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8779EB49 for ; Thu, 16 Jan 2014 20:36:21 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 571411657 for ; Thu, 16 Jan 2014 20:36:21 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 3B51C20DBE; Thu, 16 Jan 2014 15:36:16 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute6.internal (MEProxy); Thu, 16 Jan 2014 15:36:17 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:cc:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=mrzdSjUT5GmUFnas5chIOxY3hL8=; b=Ask q8EgJsf6j4B188ZOtckvuzIfy6uDsKjXuHFNB0+53UjoPWxU+9K0IV5g4PIswyB0 sX0aZ4zaWs2zbXW0BIscycJ9o+E8HEAe+YiuAjRFInIOJAFQAks/aHiMEV5HQ3+7 GCnz3DIqrQdB6dHvjvmWfnJd7X2+xgHCKw78dnSM= Received: by web3.nyi.mail.srv.osa (Postfix, from userid 99) id 4FEEE101B8C; Thu, 16 Jan 2014 15:36:16 -0500 (EST) Message-Id: <1389904576.2313.71707745.52B4D2D1@webmail.messagingengine.com> X-Sasl-Enc: zBmlPIrNJDMCrGLEy9oaE0IGvuPxk62Bu3tlCVj8ILEg 1389904576 From: Mark Felder To: Tim Kientzle MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-fdd84f42 In-Reply-To: <93FD368C-21D1-4A5F-986A-859D83AFB5BF@kientzle.com> References: <1389710847.2685.70601137.72B5C024@webmail.messagingengine.com> <93FD368C-21D1-4A5F-986A-859D83AFB5BF@kientzle.com> Subject: Re: mtree acl support Date: Thu, 16 Jan 2014 14:36:16 -0600 Cc: FreeBSD current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2014 20:36:21 -0000 On Wed, Jan 15, 2014, at 23:11, Tim Kientzle wrote: >=20 > On Jan 14, 2014, at 6:47 AM, Mark Felder 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.ht= ml > >=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 =E2=80=98tar=E2=80=99 has addressed (inspired by Joerg S= chilling=E2=80=99s > 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 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 :-)