Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Migrating Users From One Machine To Another
delsoto_osu
post Mar 11 2004, 08:10 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 11-March 04
Member No.: 2,564



I need to migrate the users and their passwords from my current mail server (rh7.2) to my new mail server which fill be running fedora. Is there a good way to do this painlessly. I would like to move the mail that the users have as well. Any help would be greatly appreciated.....thanks!!
Go to the top of the page
 
+Quote Post
hughesjr
post Mar 12 2004, 07:28 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



the files you need to be concerned about to move users and passwords over are:

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

BUT it isn't as easy as just copying the old files to the new server ... you will need to edit the new files (on the new server) and add any users that are not already in the new files ... but don't change or add users that exist already in the new files.

SO ... copy the old passwd and shadow files over to the new server ... name them passwd.old and shadow.old

open /etc/passwd on the new server and passwd.old from the old server ...

the user john is in old ... but not new ... so copy the whole line for john from the old to the new file (add it at the bottom of the file) ... do that for all users not currently in new.

Now keep passwd (from the new server) open ... open shadow new and shadow old ... copy the entries for shadow old into shadow new (put them in using the same order that they are in on the new passwd file).

Now for /etc/group ... add all the groups not currently in new from old....

save the three new files /etc/passwd, /etc/shadow, /etc/groups
--------------------------------------
next, copy all the users directories from the old server to the new server (everything in /home old to /home new)

if the mail gets delivered to the home directories, you are done ... if it goes somewhere else, you need to copy those directories over as well...


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 09:19 PM