On Tue, Jan 31, 2006 at 10:42:30PM +0100, Kosa Attila wrote:
> On Tue, Jan 31, 2006 at 09:48:26PM +0100, Geert Uytterhoeven wrote:
> > On Tue, 31 Jan 2006, Kosa Attila wrote:
> > > On Tue, Jan 31, 2006 at 04:48:31PM +0100, Geert Uytterhoeven wrote:
> > > > On Tue, 31 Jan 2006, Jon LaBadie wrote:
> > > > > On Tue, Jan 31, 2006 at 10:56:13AM +0100, Geert Uytterhoeven wrote:
> > > >
> > > > > So you could easily get a real hodge-podge of names and numeric ids
> > > > > by recovering to a different system.
> > > > >
> > > > > Archived System Recovery System Result of Recovery
> > > > > name id # name id # name id #
> > > > >
> > > > > AAA 111 AAA 111 AAA 111
> > > > > BBB 222 BBB 234 BBB 234
> > > > > CCC 333 (no CCC) (no 333) (none) 333
> > > > > DDD 444 (no DDD) (EEE is 444) EEE 444
> > > > >
> > > > > Note, 3 of the 4 cases result in a recovery that doesn't match the
> > > > > originally archived system. May or may not be what was wanted.
> > > >
> > > > But as soon as /etc/passwd and /etc/group have been restored from
> > > > backup as
> > > > well and you boot from the restored medium, CCC and DDD become correct
> > > > again,
> > > > right?
> > >
> > > The restored medium is on a cd-rom, therefore I can't change the
> > > /etc/passwd and /etc/group files. This is why I found out that
> > > solution I mentioned in my previous e-mail.
> >
> > I mean the restored version on the new _hard drive_.
>
> I can understand what you mean, but the problem is that you are
> not right. If I restore the system the uid/gid pairs will be
> stored on the basis of the actually running system (according to
> /etc/passwd and /etc/group files).
>
I believe Geert meant restore using --numeric-owner so the original
uid/gid's are used. Then when the passwd and group files are
restored, they should match.
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
|