Migrating users to a new server

I've got a server that I need to replace.  To do this, I need to somehow export all of my users from the old server and import them onto the new server.  Is there any tool that will allow me to do this?  I don't want to have to re-enter all 100 users by hand, and I have no clue what their passwords are.
whopgoodAsked:
Who is Participating?
 
febbConnect With a Mentor Commented:
To migrate all users from the old server to a new one, you would have to copy the files: /etc/passwd, /etc/group and /etc/shadow to the new system. This will create exactly the same accounts you had on the old one.

You only ask for migrating user accounts but say nohing about user data, anyway here is a comment on that:

Copy all user's directories to the new system as well, lets say home directories are under "/home/*" copy all that directory tree to the new system as well.

Remember to re-install the applications you had on the old system. I would recommend to keep the exact same filesystems and directory tree layout as to try to not breaking any shell scripts or programs that may look for something that changed its place.

Keep an eye on any symbolic links that may be lost or point to nowhere.
0
 
whopgoodAuthor Commented:
OK, this is what I thought I'd have to do, but didn't know if there was more of an automated tool that did this.  Yeah, I'll be copying over all of the user's home directories as well -- hadn't forgotten about that! :)
0
All Courses

From novice to tech pro — start learning today.