Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 08-29-2003, 02:32 AM   #1
LQ Newbie
Registered: Jun 2002
Posts: 16

Rep: Reputation: 0
copy user accounts to other linux system

I want to upgrade my linux system from an old server to a new server (both use Red Hat 8).

Does anyone know how to do the followings automatically or in a quick manner ?

1. import all users id and password from old server to new server
2. create the /home user directory in the new server with the same rights as the old server

Old 08-29-2003, 04:10 AM   #2
Registered: Aug 2003
Posts: 31

Rep: Reputation: 16
1. copy /etc/passwd (and /etc/shadow if you use shadowed passwords, which you probably do) onto the new system.

2. on old server:
cd /home
tar -cf ~/homes.tar *
copy homes.tar from your /root directory onto the root directory of the new server
on the new server:
cd /home
tar -xp ~/homes.tar
I think that should do it. If there's a lot of files there, you'll want to compress the file probably. Lookup the tar man page or the like. Also, this dosn't copy /root which is root's home. You can use tar for that too:
cd ~
tar -cf /roothome.tar *
other comp:
cd ~
tar -xp /roothome.tar
If you want to grab users in smaller increments, substitue * for a* then b* and so forth with the first pair of commands.
1 members found this post helpful.
Old 08-29-2003, 04:50 AM   #3
LQ Newbie
Registered: Jun 2002
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for your help. I will try it.


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
List all user accounts on a system? bullium Linux - General 2 04-18-2005 10:07 AM
Basic Linux Networking and setting up ssh/telnet/ftp user accounts... timmy_laf Linux - Newbie 2 01-05-2004 02:07 AM
how can i preconfigure linux user accounts??? win32sux Linux - General 4 12-28-2003 12:47 AM
Copy User Accounts from Redhat 7.2 to Redhat 9.0 namradi Red Hat 3 11-14-2003 03:28 AM
How to copy user accounts between servers glt Red Hat 8 09-02-2003 12:22 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:15 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