I have an old RHEL3 box that I am upgrading to CentOS5. I picked up a new Dell Poweredge R200 to use for that.
Is there an easy way to copy all the user accounts and existing mail from the old server to the new one?
Thanks.
I have an old RHEL3 box that I am upgrading to CentOS5. I picked up a new Dell Poweredge R200 to use for that.
Is there an easy way to copy all the user accounts and existing mail from the old server to the new one?
if local users copy /home/* /etc/passwd /etc/shadow after first making sure there are no dupes on new system
as for mail - what format is tha mail box in?
maybe as simple as copying /var/spool/something
personally i like to use rsync for this as it keeps perms well if you ask it to - your tool of choice is your call though
At 01:17 PM 6/24/2008, you wrote:
I have an old RHEL3 box that I am upgrading to CentOS5. I picked up a new Dell Poweredge R200 to use for that.
Is there an easy way to copy all the user accounts and existing mail from the old server to the new one?
if local users copy /home/* /etc/passwd /etc/shadow after first making sure there are no dupes on new system
as for mail - what format is tha mail box in?
maybe as simple as copying /var/spool/something
personally i like to use rsync for this as it keeps perms well if you ask it to - your tool of choice is your call though
rsync is definitely a very good friend, especially with permissions and timestamps. Do 'man rsync'
I use rsync -avz -e "ssh -p portxxx" source destination. My ssh port is non-standard. Very secure!
Cheers, Glenn
Tom Brown wrote:
Is there an easy way to copy all the user accounts and existing mail from the old server to the new one?
if local users copy /home/* /etc/passwd /etc/shadow after first making sure there are no dupes on new system
I usually do this with yank/paste in vi or whatever, just cutting/copying the user entries, and leaving the standard accounts on the new system alone. of course, be sure to copy the exact same entries into /etc/shadow!
if local users copy /home/* /etc/passwd /etc/shadow after first making sure there are no dupes on new system
as for mail - what format is tha mail box in?
maybe as simple as copying /var/spool/something
personally i like to use rsync for this as it keeps perms well if you ask it to - your tool of choice is your call though
I have no users on this box as of yet. It is a clean install of CentOS 5.3. The server only does email, as we have another server for domain control. I had thought I could just copy /home/* /etc/shadow and /etc/passwd and /var/spool/mail. Does it matter which file I copy first? Should I do passwd and shadow first? then do home, and leave /var/spool/mail to last?
If I do it this way, will it keep all my users passwords as well?
Thanks.
Thom Paine wrote:
if local users copy /home/* /etc/passwd /etc/shadow after first making sure there are no dupes on new system
as for mail - what format is tha mail box in?
maybe as simple as copying /var/spool/something
personally i like to use rsync for this as it keeps perms well if you ask it to - your tool of choice is your call though
I have no users on this box as of yet. It is a clean install of CentOS 5.3. The server only does email, as we have another server for domain control. I had thought I could just copy /home/* /etc/shadow and /etc/passwd and /var/spool/mail. Does it matter which file I copy first? Should I do passwd and shadow first? then do home, and leave /var/spool/mail to last?
If I do it this way, will it keep all my users passwords as well?
Thanks.
Try this link, worked for me :-) http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-ser...
there is no problem in the order. only thing is the folder of home directory and mail boxes should be properly restored with the same permissions and ownership .
On Thursday 07 May 2009 19:44, Dan Carl wrote:
d just copy /home/* /etc/shadow and
/etc/passwd and /var/spool/mail. Does it matter which file I copy first? Should I do passwd and shadow first? then do home, and leave /var/spool/mail to last?
If I do it this way, will it keep all my users passwords as well?