LinuxQuestions.org
Visit Jeremy's Blog.
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 02-06-2001, 05:35 PM   #1
mjakob
Member
 
Registered: Feb 2001
Posts: 69

Rep: Reputation: 15
Question


I have an older linux server and I want to move my 3000 users or so to a newer box. Can anyone tell me how the easy way to do this is, or at least point me in the right direction? Both servers use shadow passwords.
 
Old 02-06-2001, 05:42 PM   #2
devnull
Member
 
Registered: Feb 2001
Posts: 84

Rep: Reputation: 15
man dd
man tar
man scp
man dump
man restore
tar looks like to be the right choice for you!
 
Old 02-07-2001, 07:58 AM   #3
mjakob
Member
 
Registered: Feb 2001
Posts: 69

Original Poster
Rep: Reputation: 15
But tar what? I guess I understand how to move the home directories, and /var/spool/mail/*, But what I don't get is how to get the user names and passwords over. Can I just move /etc/shadow and /etc/passwd to the new box and let 'er rip? Or will that cause problems?

Thanks,
-Mark
 
Old 02-07-2001, 08:30 AM   #4
devnull
Member
 
Registered: Feb 2001
Posts: 84

Rep: Reputation: 15
If the filesystem structure hasn't changed on the new box,
i.e. the home-dirs are in the same place as defined in your passwd, it should work fine. So tar the comlete home-dirs, the /var/spool/mail, /var/spool/news etc. and move them to the new box. Also copy your passwd and shaddow to the new box.

You don't tell, what systems you use on your new and old server. Will there be a new OS-Version on the new box? Or is it really a one-to-one copy of your old box? If it is a pure copy of the old server, there are more convienient ways to do a migration.
 
Old 02-07-2001, 08:48 AM   #5
mjakob
Member
 
Registered: Feb 2001
Posts: 69

Original Poster
Rep: Reputation: 15
The real reason for the upgrade is this:
The main goal is to merge the users of two ISPs. One server has about 3000, the other server has less than 500. The smaller server was one that I had set up and ran. The bigger server is from a larger ISP that was bought by the same company that bought mine. It is pretty old and several things should be upgraded anyway, plus I know very little about it and that admin is gone and keeping his lips sealed because he didn't get the money he wanted.

Anyway, I have a new server that I will likely install RedHat 6.2 onto. I would think that the easiest way would be to copy the users from the large server to the new server first, since they will both run sendmail and otherwise are similar. Then, since my smaller server runs Qmail, I will probably just add my 500 users to the new box by hand, as I will have to deal with a handful of duplicates.

Now, as for OS changes, the older, larger box has some old version of Linux on it. It's from before I even new what Linux was. I'm told it is Linux, but here is the banner when I telnet in:


UNIX(r) POSIX Style Release 4.2 (my.hostname.here)

my.hostname.here login:


I really have no idea what OS this is, which, is my biggest reason for wanting to change it. The server has a few smaller problems, and we have the new box, so I might as well upgrade. I'm going to use the new box for email and radius authentication, and leave the webpages and such on the old box.

Hope that helps.

Thanks
-Mark
 
Old 02-07-2001, 10:55 PM   #6
mjakob
Member
 
Registered: Feb 2001
Posts: 69

Original Poster
Rep: Reputation: 15
Nobody has any good thoughts on the subject?

--Mark
 
Old 02-07-2001, 11:34 PM   #7
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
A lot of this depends on the end setup that you would like. If the new server is only going to be mail/radius you may not even want to copy the contents of /home. You should be able to copy the passwd and shadow files assuming that both *NIX versions involved use the same encrytion type. You may also want the group file. What is the output of `uname -a` on the "old" box?
 
Old 02-08-2001, 07:37 AM   #8
mjakob
Member
 
Registered: Feb 2001
Posts: 69

Original Poster
Rep: Reputation: 15
[root@main /root]# uname -a
Linux main.keynet.net 2.0.30 #1 Tue Apr 22 10:49:45 EDT 1997 i686 unknown
[root@main /root]#


No, I want the home directories. I think what I'll do is run the ISPs home page on this server with apache and let everyone put their personal homepages in their home directories, and put all hosted sites on the other server. Otherwise, wouldn't I have to add and keep track of users on both servers?

I'm sorry from seeming so lame here, but this is something I've never done before and I can't find any documentation on it.

-Thanks
--Mark
 
Old 02-13-2001, 09:58 AM   #9
mjakob
Member
 
Registered: Feb 2001
Posts: 69

Original Poster
Rep: Reputation: 15
I just discovered that the old server I'm trying to move users off of is running RedHat 4.2. Perhaps this can help you guys help me??

Thanks,
Mark
 
Old 02-14-2001, 08:16 PM   #10
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
Do you offer shell accounts?
 
Old 02-14-2001, 08:21 PM   #11
mjakob
Member
 
Registered: Feb 2001
Posts: 69

Original Poster
Rep: Reputation: 15
Well, everyone gets a home directory, but I don't allow users to telnet in. The only thing they users can really use the space for is hosting webpages. They have access to ftp pages into their home directories. A few users have actual pages and there are a few more that use the space to host pictures for their stuff on ebay....

 
Old 02-15-2001, 07:35 PM   #12
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
You may want to just ditch the passwd files and have ftp, pop, etc authenticate out of a db such as MySQL.
 
Old 02-19-2001, 09:25 PM   #13
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
mjakob,
Just ran across this a thought you might be interested.
Quote:
passwdd is a client/server packages which allows basic synchronization of password files among different machines. There are Linux server and Linux console clients. With Visual C/C++ you can compile the Windows version of the clients. Perl CGIs are included as well.
They don't get into too much detail and I didn't get a chance to download the source, but it may be possible to get this program to sync the accounts.

http://freshmeat.net/releases/41370/
 
Old 02-19-2001, 09:50 PM   #14
mjakob
Member
 
Registered: Feb 2001
Posts: 69

Original Poster
Rep: Reputation: 15
Hey, thanks man. I'll take a look at it. It might also server as a fix to some other issues I'm having.

Thanks,
-Mark
 
Old 09-26-2001, 01:53 PM   #15
charlih
LQ Newbie
 
Registered: Sep 2001
Location: Milpitas, CA
Distribution: RedHat
Posts: 2

Rep: Reputation: 0
Lightbulb Copy passwd

TRy the following steps:
*******************
1. [FROM_Linux /etc]#pwunconv /etc/passwd
2. [FROM_Linux /etc]#vi passwd
Find a way to copy&paste its content.

3. [TO_Linux /etc]#pwunconv /etc/passwd
4. [TO_Linux /etc]#vi passwd
Paste the content into the file

5. [TO_Linux /etc]#pwconv /etc/passwd
6. [FROM_Linux /etc]#pwconv /etc/passwd

Hope it will work if the password coding method are the same between two Linux box.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
system account or user account??? yenonn Linux - Newbie 6 05-10-2006 07:49 PM
Keeping user passwords in mail-server migration TRx Linux - Software 4 10-06-2005 10:05 AM
User migration from Samba to NIS ice_hockey Linux - Networking 1 05-16-2005 09:23 PM
User Migration: how do you move /etc/shadow? groovin Linux - General 4 04-13-2004 11:26 AM
User and File Migration shemp Linux - Software 3 03-18-2002 05:19 PM

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

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