Adding Users

Adding Users

Post by Hunte » Fri, 28 Feb 2003 02:25:09



Newbie Alert:  I have a Redhet 7.3 machine working correctly.  I
started playing with a Redhat 8.0 machine.  Is there anyway to sync
the users and passwords to the new machine?  I guess I just don't know
what I'm looking for.  Pointing to a how-to-doc would be great.  

Thanks

 
 
 

Adding Users

Post by Olav Fossgaar » Fri, 28 Feb 2003 05:25:56



> Newbie Alert:  I have a Redhet 7.3 machine working correctly.  I
> started playing with a Redhat 8.0 machine.  Is there anyway to sync
> the users and passwords to the new machine?  I guess I just don't know
> what I'm looking for.  Pointing to a how-to-doc would be great.  

Copy the user entries from /etc/shadow and /etc/passwd on the old box into
the same files on the new box. Remember to back up these files first.

Olav

 
 
 

Adding Users

Post by enri.. » Fri, 28 Feb 2003 05:42:34



> Newbie Alert:  I have a Redhet 7.3 machine working correctly.  I
> started playing with a Redhat 8.0 machine.  Is there anyway to sync
> the users and passwords to the new machine?  I guess I just don't know
> what I'm looking for.  Pointing to a how-to-doc would be great.  

> Thanks

Merge the files /etc/passwd and /etc/group.
If you have shadow-file enabled, I'm not sure where the shadow file
is, perhaps /etc/shadow. (I don't have it enabled.)

In the old days I used to maintain a NIS database for the passwords,
but I don't know if there is something more modern today. Pam modules
that access ldap dtabases, I guess. Or Kerberos servers. I am quite
sure that NIS can be made to work on a linux platform, though.

Having a NIS database meant all computers in the company network
recognized the same users and passwords. You could still have problems
logging into a new machine, if there was no /home/myname directory on
the new computer. After I quit that job, there came something called
NIS+, and later still, automounter, which allowed various ways of
making that problem go away, but as said, I no longer work in a strong
Unix environment and I no longer do systems administration, so I
cannot help you any further.

Regards, Enrique