LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2002, 03:33 PM   #1
shemp
LQ Newbie
 
Registered: Mar 2002
Posts: 2

Rep: Reputation: 0
Question User and File Migration


I have Redhat 7 installed on a server (total history is: 6.1 upgrade to 6.2 upgrade to 7)

I want to move "everything" to a new computer. How do I migrate everyone without recreating user accounts?
 
Old 03-18-2002, 04:49 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
you mean can you move the harddrives to the new system? yes no problem generally, unless you're using a homebuilt kernel and such like. the new hardware should be automatically recongised well enough. there's a chance it won't but it's unlikely really.
 
Old 03-18-2002, 05:11 PM   #3
shemp
LQ Newbie
 
Registered: Mar 2002
Posts: 2

Original Poster
Rep: Reputation: 0
Update: I want to transfer all groups and users.
 
Old 03-18-2002, 05:19 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 59
Funny, I migrated my server off of RH 7.0 about half a year ago onto a Slack 8 box. It gets pretty involved if you're running a lot of services and want to keep all of the logs, but lets just worry about the users:

tar czf home.tar.gz /home

Unpack that with:

tar xvzf home.tar.gz

with the file sitting in /

The best way to changover the GIDs and UIDs is to copy /etc/shadow/ /etc/group and /etc/passwd, edit out all of the system daemon IDs, basically everything under 500 in RedHat, and then cat the edited file onto the new machine's /etc/shadow /etc/passwd and /etc/group with:

cat passwd.old >> /etc/passwd

Don't forget to tar up and /var/spool/mail in the same way if you're going to want to swap out the mailserver.

Cheers,

Finegan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping user passwords in mail-server migration TRx Linux - Software 4 10-06-2005 10:05 AM
file locked by another user Dagk Linux - Newbie 6 09-14-2005 09:08 PM
User migration from Samba to NIS ice_hockey Linux - Networking 1 05-16-2005 09:23 PM
User Migration: how do you move /etc/shadow? groovin Linux - General 4 04-13-2004 11:26 AM
User account migration mjakob Linux - General 14 09-26-2001 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration