Fedora Linux Support Community & Resources Center
Old 8th March 2006, 11:33 AM
zanzan Offline
Registered User
Join Date: Oct 2005
Posts: 5
Migrating (moving) users from one fedora machine to another fedora machine

Hello all u fedora fans out there!

Can anybody give some hints in how to successfully migrate user accounts from one fedora machine to another?
I did search on forums and such, but could not find any thread on this particular question ...

In my case I have a fedore core 2 machine with a number of users, which would have to be moved to the newly installed fedore core 4 machine.
Basically the most important data are the useraccounts with their passwords not to be lost, and the mails and the websites. Using openwebmail, /var/spool/mail as well as user created folders in home directories /home are to be transferred.

The steps I took so far :

I copied /var/spool/mail and /home as well as /var/www/html for the sites.
that seemed to have gone ok.

I did this using rsync with the option to preserve owner and time

rsync -apogt root@ip:/home/ /home

same I did thing for the /var/spool/mail and /var/www/html

2) copied the /etc/shadow, shadow- gshadow and gshadow- to the new server.

Now is the question, what else is needed ?
because clearly, there is a problem:
ls -l command in home for instance, shows the ownership of the folders as numbers instead of usernames.
changing a password of a user -- passwd "user" I get the user does not exist.

I hope someone has a hint ...

thanks in advance


Last edited by zanzan; 8th March 2006 at 11:36 AM.
Reply With Quote
Old 8th March 2006, 11:41 AM
baschti Offline
Registered User
Join Date: Nov 2005
Location: Old Europe
Posts: 377
imho you also need the /etc/passwd file which includes the mapping between usernames and user id's
Reply With Quote
Old 8th March 2006, 11:51 AM
zanzan Offline
Registered User
Join Date: Oct 2005
Posts: 5
thanks for ur answer !

meanwhile I DID find a similar thread .. errr ... typically after seaching for hours, you post a question, and then the next minute you accidentaly run into the answer ... oops sorry

I found there its needed to copy /etc/passwd and /etc/group as well ...

I will try it and post if this solved it all.

Reply With Quote
Old 8th March 2006, 12:19 PM
Sarthan Offline
Registered User
Join Date: Feb 2006
Location: Belgium
Age: 39
Posts: 142
Don't forget /etc/group which contains the user-group-mappings.
Reply With Quote

fedora, machine, migrating, moving, users

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Migrating Server to another machine mambara Servers & Networking 3 17th April 2009 07:43 PM
Moving LVM disks from one machine to another. stovesy Using Fedora 8 26th February 2009 05:11 PM
Moving a Harddrive from one machine to another Nickmorgan19457 Hardware & Laptops 2 30th August 2006 07:25 AM

Current GMT-time: 20:21 (Friday, 18-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat