From owner-freebsd-arch@freebsd.org Fri Dec 25 20:49:03 2015 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5C05A527DD for ; Fri, 25 Dec 2015 20:49:03 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 84BF41E6B for ; Fri, 25 Dec 2015 20:49:03 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4687220299 for ; Fri, 25 Dec 2015 15:49:02 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute5.internal (MEProxy); Fri, 25 Dec 2015 15:49:02 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=4KCIk/kuGF3k+BZ 796WBdTG+nws=; b=ZDbzNUxuc9W3qaSPiBRcKcWVDapan11PjG++ZUnm7oGPaHS 2sX+d9L0gDVAZD+LpzSMV3XtrvK49WXYfYRC3THMyz6V2UAdtuO9h7ARZWnijCVP LBV21Y16yHg9ghXpmmP0pTsDdJQug8gHhlXS1/ciRVw/QN9kudc17Sm+1Npc= Received: by web3.nyi.internal (Postfix, from userid 99) id 15D3510C3BE; Fri, 25 Dec 2015 15:49:02 -0500 (EST) Message-Id: <1451076542.3798695.476329634.38F8B4D2@webmail.messagingengine.com> X-Sasl-Enc: TEA4f4PNKzQabrlJnISLPVJLMB6qYl+O4nTwe7ptpLEm 1451076542 From: Mark Felder To: Tim Kientzle , Warner Losh , "Simon J. Gerraty" Cc: freebsd-arch@freebsd.org, Brooks Davis , Michal Ratajsky MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-a93c17cb Subject: Re: mtree "language" enhancements Date: Fri, 25 Dec 2015 14:49:02 -0600 In-Reply-To: <0A51B6D4-9EDD-4EFF-876F-C6B515DBB4F3@kientzle.com> References: <0A51B6D4-9EDD-4EFF-876F-C6B515DBB4F3@kientzle.com> X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Dec 2015 20:49:03 -0000 On Sun, Nov 29, 2015, at 22:28, Tim Kientzle wrote: > > > On Nov 29, 2015, at 2:49 PM, Tim Kientzle wrote: > > > > Simon also asked: > >> Indeed I'd really like the ability to provide default uid/gid > >> for the case that a uname/gname cannot be looked up. > > > > I think 'tar' got this right: If uname and uid are both specified, then look up uname and if that fails, use the specified uid. Ditto for gname/gid. In particular, this lets a single specification be used to rebuild a tree on another system with different UIDs or on a system that does not (yet) have a full password file. An option could be provided for the (rare) case that someone really wants to prefer UIDs to unames. > > On further reflection, preferring UIDs to unames would actually be pretty > common here. > Just don't lose the functionality to use unames. It's really useful when changing lots of UIDs. Just schedule maintenance, do an mtree capture of the filesystem, change UIDs, re-apply the mtree. It will fix everything for you :-) -- Mark Felder ports-secteam member feld@FreeBSD.org