From owner-freebsd-questions Thu Oct 8 09:15:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA25774 for freebsd-questions-outgoing; Thu, 8 Oct 1998 09:15:49 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from relay01.indigo.ie (relay01.indigo.ie [194.125.133.225]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA25769 for ; Thu, 8 Oct 1998 09:15:43 -0700 (PDT) (envelope-from relyod@indigo.ie) Received: (qmail 25249 messnum 238194 invoked from network[194.125.148.190/ts04-060.dublin.indigo.ie]); 8 Oct 1998 16:15:29 -0000 Received: from ts04-060.dublin.indigo.ie (HELO nt?dublin) (194.125.148.190) by relay01.indigo.ie (qp 25249) with SMTP; 8 Oct 1998 16:15:29 -0000 Message-Id: <3.0.5.32.19981008170354.009185a0@pop.indigo.ie> X-Sender: relyod@pop.indigo.ie X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Thu, 08 Oct 1998 17:03:54 +0100 To: Guy Helmer From: Michael Doyle Subject: Re: Migrating User information (HELP) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: References: <3.0.5.32.19981008141352.009494f0@pop.indigo.ie> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> I want to replace the old server with the new server, but to do so, I need to >> set up or copy all the user accounts on the old server onto the new server. >> >> Is there any way to do this? >> >> I tried copying the passwd, master.passwd, passwd.db, spwd.db and group files >> to the new server but this just locked me out of the system - none of >> the passwords worked. (restoring the old files put things back the way >> they were) > >It should have worked; do you have the same links for /usr/lib/libcrypt* >on your new machine as you did on your old machine? A common problem is >for a "new" machine to not have the /usr/lib/libdescrypt* libraries >installed, which are required if the passwords were encrypted on a machine >that had the libdescrypt* libraries. > Hmm... each machine is as installed from the release CD-ROMS (old = 2.2.5, new=2.2.7) and in each case I did not install the US security patches, so it is quite possible that the lybcrypt* files are different. >> How can I duplicate the users onto the new machine? >> (They are connected by a LAN, at the moment NFS is not installed on either, >> but FTP is working on both) > >If you have the disk space, you could tar up the home directories on the >old machine, FTP the tar file to the new machine, and untar the home >directories on the new machine. > Yup, I'm sure I could do this. the old machine has about 100M free, the new one has 6G free, and all but two or 3 of the home directories are simply stubs - because the machine in question is a Web Proxy/POP3 server the majority of users only ever use Eudora and IE/Netscape to interract with it. >Otherwise, if you can "rsh" as root between the two machines, you might be >able to do: > > tar cf - /usr/home | rsh newmachine "tar -C /usr/home -x -v -f -" > Thanks... Mike <><=====================================================><> Michael Doyle phone: +353-1-661-0588 Network Administrator http://www.co-operation-ireland.ie/ Co-Operation North E-mail: relyod@co-operation-ireland.ie (0ffice) relyod@indigo.ie (Personal) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message