Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Dec 2015 14:49:02 -0600
From:      Mark Felder <feld@FreeBSD.org>
To:        Tim Kientzle <tim@kientzle.com>, Warner Losh <imp@bsdimp.com>, "Simon J. Gerraty" <sjg@juniper.net>
Cc:        freebsd-arch@freebsd.org, Brooks Davis <brooks@freebsd.org>, Michal Ratajsky <michal.ratajsky@gmail.com>
Subject:   Re: mtree "language" enhancements
Message-ID:  <1451076542.3798695.476329634.38F8B4D2@webmail.messagingengine.com>
In-Reply-To: <0A51B6D4-9EDD-4EFF-876F-C6B515DBB4F3@kientzle.com>
References:  <CANCZdfrDtfkwKxMV3o9tcQNzBQDKZdTx1JErkTKtC7UZORT5aA@mail.gmail.com> <AFF9BC5D-536B-4F7D-83CC-E26D9CBA8BF3@kientzle.com> <CANCZdfp%2BtCnXDkbMan9crp9YepVnZKT_hSw%2Bi43OAzZX3VWhXg@mail.gmail.com> <A5A83D40-6B19-465C-9042-3DB3FB127759@kientzle.com> <0A51B6D4-9EDD-4EFF-876F-C6B515DBB4F3@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Sun, Nov 29, 2015, at 22:28, Tim Kientzle wrote:
> 
> > On Nov 29, 2015, at 2:49 PM, Tim Kientzle <tim@kientzle.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1451076542.3798695.476329634.38F8B4D2>