Date: Sun, 29 Nov 2015 20:28:42 -0800 From: Tim Kientzle <tim@kientzle.com> To: Warner Losh <imp@bsdimp.com>, "Simon J. Gerraty" <sjg@juniper.net> Cc: Michal Ratajsky <michal.ratajsky@gmail.com>, Brooks Davis <brooks@freebsd.org>, "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org> Subject: Re: mtree "language" enhancements Message-ID: <0A51B6D4-9EDD-4EFF-876F-C6B515DBB4F3@kientzle.com> In-Reply-To: <A5A83D40-6B19-465C-9042-3DB3FB127759@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>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Nov 29, 2015, at 2:49 PM, Tim Kientzle <tim@kientzle.com> wrote: >=20 > 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. >=20 > 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. In particular, NanoBSD (and Crochet and other similar tools) should = prefer the UID when building images instead of looking up unames against = the build host's password file. Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0A51B6D4-9EDD-4EFF-876F-C6B515DBB4F3>