Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 11-13-2003, 11:46 PM   #1
LQ Newbie
Registered: May 2003
Posts: 10

Rep: Reputation: 0
Copy User Accounts from Redhat 7.2 to Redhat 9.0

Hi All,

I have two servers on is old which is currently in production and is running 7.2 and i bought new server on which i have installed Redhat 9.0. Now i want to copy all those users on to this new system.

WHat all files i have to copy or merge like

/etc/group, /etc/password/, /etc/shadow and any more. what is gshadow do i have to copy that. Are there any other files that i have to copy except the data files like mail folders and home directories.

And are there any tools or methods to do this. Any easy ways.

Any help is really appreciated.

Thanks a lot,
Old 11-14-2003, 12:24 AM   #2
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Your question implies that your server is used by a number of people, but all authentication is done locally, which sounds odd to me.

If you are actually maintaining several systems with identical accounts, you might want to consider using NIS for authentication, in which case moving the accounts just means setting the new box up as an NIS client.

If you are committed to moving the user accounts as you have described, I suggest that (after you do a backup) you turn off password shadowing, copy the user entries in /etc/passwd and /etc/groups to the new box, then turn shadowing back on.

Note that the /etc/skel (default user environment configuration) files will have changed between RH7.2 and RH 9.0, so your users will be missing out on some of the features the upgrade will provide new users. If your users are curmudgeons that carry around their own highly customized environment, then this won't matter.

If you only have a dozen users, I would be inclined to suggest that you just copy over the /etc/groups file, use useradd to create their accounts anew on the new box with their old uids and gids, leave the old box up for a few months as an NFS server - letting your users copy over the files that they want. Then shut the old box down, holding onto your backup.
Old 11-14-2003, 12:41 AM   #3
LQ Newbie
Registered: May 2003
Posts: 10

Original Poster
Rep: Reputation: 0
I am sorry that i didnt mention that after i am migrating from the old server to the newone with a new OS (Redhat 9.0). SO it is like after i configure everything on the new server i will replace the new one in place of OLD. ANd my server is mainly Web Server and File Server. So the Users Use Samba to store files. Apart from that i have apache running with lots of PHP , Perl Applications ANd a Mailman mail server. So my main concern in this migration is the user accounts and there are lot of them i think.

thanks a lot
Old 11-14-2003, 04:28 AM   #4
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30

well u will nee more thta just those files u mentioned as each user has a home dir and all their profiles and scripts get put into there. U have two ways in doing htis hte first is buy coping those files and replacing them on new server. Then u may tar cjvf /home and copy this file across then tar zjvf /home and replave current home dir. The other way to copy over the /home dir is buy doing a rsync which will replicate this data between the two servers and everything will be identical once that has been done u may switch old server off.

Hope this helps



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
Copy inhibit for RedHat AS 3.0? ssolina Linux - Security 3 05-25-2005 09:35 PM
Where can I get a copy of Redhat 9.0? EVO VIII Chris Red Hat 31 01-23-2004 09:10 PM
redhat 2.1 server user accounts fotoguy Linux - General 3 01-01-2004 04:14 PM
How to copy user accounts between servers glt Red Hat 8 09-02-2003 01:22 PM
copy user accounts to other linux system pangfai Linux - Security 2 08-29-2003 05:50 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:11 PM.

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