LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-02-2010, 11:00 PM   #1
elainelaw
Member
 
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, 11:05 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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.

Evo2.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 PM.

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