[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: migrating my lenny install from 32-bit to 64-bit?



On Wed, 16 Sep 2009, Sven Joachim wrote:

> On 2009-09-16 15:57 +0200, Sjoerd Hardeman wrote:
>
> > Kept thinking a bit longer: are the uids and gids of daemon users
> > actually determined during install? My experience is that these
> > users actually preserve their uid over installations quite well.
>
> This is only true for users with a UID < 100, as these are defined
> and maintained by the base-passwd package.  System users with a
> higher UID get their UID and GID allocated at package installation
> time and use the first ones that are available.  So these vary
> greatly between systems.

  so, just to put this part of the thread to bed, as i read it, the
easiest way to now migrate over the users and groups from the old
system is to take the three files:

  * /etc/passwd
  * /etc/shadow
  * /etc/group

strip copies of them down to just their non-system users and groups,
and append what's left to their respective files on the new install.
from my experience with numerous forms of linux and unix, just those
three files define the system users and groups.

  note that doing the above does nothing about configuring *other*
software or features for user or group access -- copying the
respective home directories, adding users' access to things like, say,
/etc/ftpusers and so on.  that's different.  i'm talking simply about
defining the *existence* of those users and groups, nothing more.

  are there any files or directories in addition to the above three i
need to worry about?  thanks.

rday

p.s.  once all this is done, i really do plan on summarizing what i
had to go through so others can take advantage of it.

--



========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

        Linux Consulting, Training and Annoying Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================


Reply to: