Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th March 2006, 10: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 :

1)
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

Zan

Last edited by zanzan; 8th March 2006 at 10:36 AM.
Reply With Quote
  #2  
Old 8th March 2006, 10: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
  #3  
Old 8th March 2006, 10: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

http://forums.fedoraforum.org/showthread.php?t=329
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.

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

Tags
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 04:11 PM
Moving a Harddrive from one machine to another Nickmorgan19457 Hardware & Laptops 2 30th August 2006 07:25 AM


Current GMT-time: 06:26 (Wednesday, 22-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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
Yicheng - Doka Photos on Instagram - Cordoba Instagram Photos