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 04-24-2006, 01: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, 03: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, 11: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, 01: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, 11: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


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
How to sort regular users and system users from /etc/passwd joeyBig Red Hat 9 05-29-2008 01:59 AM
Migrating a Debian Server from one System to another wodan39 Linux - Hardware 0 05-18-2005 04:44 PM
X is not starting after migrating system ! bynaar Slackware 12 12-05-2004 12:39 AM
Migrating machine users to virtual users p_penduko Linux - General 2 11-04-2004 08:37 AM
Migrating to another system, would like to keep user settings and profiles.. BxBoy Linux - General 3 08-01-2003 12:29 AM


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