LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-17-2007, 04:26 PM   #1
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Rep: Reputation: 31
Transferring users between servers


I can't imagine this question hasn't been asked before, but a search turned up nothing.

I just did a new install, and I need to have all "linux users" on my old machine transferred to the new machine.

I don't want to have to sit at the commandline doing useradd/passwd for a few hundred users.

Thx.
 
Old 10-17-2007, 04:40 PM   #2
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Same distro?

/etc/group
/home/user directory
/etc/passwd
/etc/shadow
/root

don't transfer the system accounts though - just the usres - and do do group before the home directories

Think that's all you need
 
Old 10-17-2007, 06:00 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by fw12 View Post
I can't imagine this question hasn't been asked before, but a search turned up nothing.
How odd :}

Maybe we should build a thesaurus in for the search-terms ;}



http://www.linuxquestions.org/questi...nother-394669/
http://www.linuxquestions.org/questi...se-9.1-247221/




Cheers,
Tink
 
Old 10-18-2007, 12:29 PM   #4
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Original Poster
Rep: Reputation: 31
Quote:
How odd :}

Maybe we should build a thesaurus in for the search-terms ;}

http://www.linuxquestions.org/questi...nother-394669/
http://www.linuxquestions.org/questi...se-9.1-247221/

Cheers,
Tink
True, the search terms to matter. My search term "transfer linux users", "transfer linux accounts" didn't help.
 
Old 10-18-2007, 12:43 PM   #5
LoneGunman
LQ Newbie
 
Registered: Oct 2007
Distribution: Red Hat ES 4
Posts: 10

Rep: Reputation: 0
You can use Webmin to export any or all users from one system to another. Works very well.
 
Old 10-18-2007, 01:35 PM   #6
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Original Poster
Rep: Reputation: 31
Quote:
Same distro?

/etc/group
/home/user directory
/etc/passwd
/etc/shadow
/root
Yes, same distro and version.

I transferred the files you suggested excluding system accounts. On reboot, I tried login in using one of the accounts, and this is the error I received:

--------------------- BEGIN ----------------------
The files that contain your preference settings are currently in use.

You might be logged in to a session from another computer, and the other login session is using your preference settings files.

You can continue to use the current session, but this might cause temporary problems with the preference settings in the other session.

Do you want to continue?
----------------------- END -----------------------

I clicked to continue, and yet more errors resulted.

None of the following contain duplicates for that account...
/etc/group
/home/user directory
/etc/passwd
/etc/shadow

so I'm not sure how come the files are in use.

Anyway, I've copied all original files back. I guess I'll just add the files manually for now. Maybe I'll have better luck in future.

Last edited by fw12; 10-18-2007 at 03:47 PM.
 
Old 10-18-2007, 03:46 PM   #7
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Original Poster
Rep: Reputation: 31
Quote:
You can use Webmin to export any or all users from one system to another. Works very well.
I used webmin to export and import users. I still got the errors.

The problem is with my system, not the process of transferring users.

Thanks for your help.
 
Old 10-19-2007, 01:08 PM   #8
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Original Poster
Rep: Reputation: 31
I went ahead and did a fresh install just to convince myself that user transfers between machines works.

The transfer went flawlessly using webmin. The good thing about using webmin is that it gives you an easy way to exclude system accounts.

I thank everybody who responded to my post.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
migrating users between 2 linux servers javier_ccs Linux - General 3 09-12-2006 01:21 PM
Question on users under which servers run keygrip Linux - Newbie 5 03-06-2004 12:27 PM
Synchronizing Users Across Multiple Servers ghight Linux - Networking 4 08-22-2003 09:35 AM
Transferring to a new HD Citizen Bleys Linux - Hardware 3 04-01-2003 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:54 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
Open Source Consulting | Domain Registration