LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-02-2009, 06:11 AM   #1
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
Question how to export/import users/passwords ?


hi everybody,

who knows how can I move all users from one machine to another ?

I`m using Centos 5.2. Is there any software for fast migration of huge amount of users(with passwords and bash environments) ?

 
Old 02-02-2009, 06:19 AM   #2
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
You need to backup this files: /etc/passwd, /etc/group, /etc/shadow, then backup the directories of your users like /home/user1, /home/user2 and just copy the directories on the new machine and from passwd and shadow and maybe group lines related to those users like this:

cat /etc/passwd|egrep 'user1|user2'
cat /etc/shadow|egrep 'user1|user2'
and also maybe from /etc/group if the users have some special group.

Good luck!
 
Old 02-02-2009, 06:26 AM   #3
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by robertjinx View Post
You need to backup this files: /etc/passwd, /etc/group, /etc/shadow, then backup the directories of your users like /home/user1, /home/user2 and just copy the directories on the new machine and from passwd and shadow and maybe group lines related to those users like this:

cat /etc/passwd|egrep 'user1|user2'
cat /etc/shadow|egrep 'user1|user2'
and also maybe from /etc/group if the users have some special group.

Good luck!
I forgot to write that migration will be from SUSE 9 to Centos 5.2.

Is there any diffrence in this case ?
 
Old 02-02-2009, 06:33 AM   #4
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
Well normally no, when it comes to passwd, shadow and group, but some "profiles" and "settings" of the users may not work, but its not something to go crazy over, the move i've done it from CentOS to Ubuntu Server and it worked... so it should work for u too.
 
  


Reply

Tags
export, import, users



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
Import (and export) Email mesages to and from Outlook / OE 1kyle SUSE / openSUSE 2 03-22-2008 03:26 PM
Export-Import with pipe files asi Linux - Software 2 06-05-2007 11:25 AM
Import/Export Thunderbird filters xri Linux - Software 2 01-07-2007 08:31 PM
Import/Export BookMarks of Mozilla/FireFox UFC Linux - Software 2 07-03-2006 08:41 PM
Accessing import and export symbols ? unclesam Linux - Newbie 2 01-11-2006 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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