LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-24-2006, 12:35 AM   #1
wincrk
Member
 
Registered: Feb 2003
Distribution: Redhat 9.0
Posts: 104

Rep: Reputation: 15
migrating users from one system to another system


Hi,
i've got one server running debian, there more than 200 users in that box. this server running web server and mail server.

last week, this server become unstable, many errors.
my supervicor want me to reformat this server.

if i were to do so, could i transfer all the user to the new server, without need to add them one by one.
 
Old 04-24-2006, 02:33 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
All the relevant information of the users is located in /etc/passwd, /etc/shadow and /home/*
So, by transfering parts of those / or them wholly you could transfer the users. Do note that it probably is not wise to transfer passwd and shadow fully as you would overwrite system users on the destination machine.
 
Old 04-25-2006, 10:09 PM   #3
wincrk
Member
 
Registered: Feb 2003
Distribution: Redhat 9.0
Posts: 104

Original Poster
Rep: Reputation: 15
is it that easy to migrating from onelinux system to another linux system?
if i overwrite the passwd, shadow and /home with the old one, is it will overwrite all the current user on that machine?
 
Old 04-26-2006, 12:36 AM   #4
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Yes, and yes. (:

So, my recomendation is that you move only the lines that contain the users whom you want to move. (as in not the system users) And then just copy those over to the new machine. For every line you copy from passwd they will need their corresponding shadow line. And if the users want to keep their files, their home directory is very useful to copy also.. (:
 
Old 04-26-2006, 10:07 PM   #5
wincrk
Member
 
Registered: Feb 2003
Distribution: Redhat 9.0
Posts: 104

Original Poster
Rep: Reputation: 15
thanks Artanicus,

it's very helpful for a new learner like me.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to sort regular users and system users from /etc/passwd joeyBig Red Hat 9 05-29-2008 12:59 AM
Migrating a Debian Server from one System to another wodan39 Linux - Hardware 0 05-18-2005 03:44 PM
X is not starting after migrating system ! bynaar Slackware 12 12-04-2004 11:39 PM
Migrating machine users to virtual users p_penduko Linux - General 2 11-04-2004 07:37 AM
Migrating to another system, would like to keep user settings and profiles.. BxBoy Linux - General 3 07-31-2003 11:29 PM

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

All times are GMT -5. The time now is 08:28 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