LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 07:11 AM   #1
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 250

Rep: Reputation: 18
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, 07:19 AM   #2
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 587

Rep: Reputation: 58
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, 07:26 AM   #3
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 250

Original Poster
Rep: Reputation: 18
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, 07:33 AM   #4
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 587

Rep: Reputation: 58
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


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


All times are GMT -5. The time now is 10:02 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration