Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-02-2010, 10:00 PM   #1
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
copy user

I hv two server ( Redhat ) , I want to copy a few user ( not all user , only copy 100 out of 500 users ) from server A to server B , I want to copy the user a/c ( passwd , shadow and profile ) can advise what is the method to do that ? thx
Old 03-02-2010, 10:05 PM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289
I think you can simply append the entries to /etc/passwd and /etc/shadow (and /etc/group) after making sure that the username and uid (and gid) are not already used.

What do you mean by "profile"? Are you talking about the users home dir? If so I think you can just copy these too, again making sure that you file ownerships are correct.



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
Can I copy a user profile to another user? michalng Linux - Newbie 12 04-19-2015 05:02 AM
user copy saran_sai Linux - Newbie 1 09-27-2008 10:04 AM
User Copy Routines vduvvuru Linux - Kernel 3 03-05-2008 06:27 PM
Copy the configuration from one user to another one Infernox Slackware 15 10-21-2005 01:48 PM
Copy User Permissions mairul Linux - Newbie 0 02-16-2004 02:09 AM > Forums > Linux Forums > Linux - Newbie

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

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