mtree "language" enhancements
Mark Felder
feld at FreeBSD.org
Fri Dec 25 20:49:03 UTC 2015
On Sun, Nov 29, 2015, at 22:28, Tim Kientzle wrote:
>
> > On Nov 29, 2015, at 2:49 PM, Tim Kientzle <tim at 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 at FreeBSD.org
More information about the freebsd-arch
mailing list