From owner-freebsd-questions Thu Oct 8 15:49:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA09518 for freebsd-questions-outgoing; Thu, 8 Oct 1998 15:49:37 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from well.apcs.com.au (well.apcs.com.au [203.35.4.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA09396 for ; Thu, 8 Oct 1998 15:48:56 -0700 (PDT) (envelope-from keith@well.apcs.com.au) Received: (from keith@localhost) by well.apcs.com.au (8.8.8/8.8.8) id IAA01775; Fri, 9 Oct 1998 08:49:32 +1000 (EST) (envelope-from keith) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 In-Reply-To: <3.0.5.32.19981008170354.009185a0@pop.indigo.ie> Date: Fri, 09 Oct 1998 08:49:31 +1000 (EST) Reply-To: keith@apcs.com.au Organization: Australia Power Control Systems P/L From: Keith Anderson To: Michael Doyle Subject: Re: Migrating User information (HELP) Cc: freebsd-questions@FreeBSD.ORG, Guy Helmer Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I just did something like this and it worked fine I mounted the old (2.2.6) on the new (2.2.7)(mount_nfs old:/home /mnt/oldhome then did a cp -Rp /mnt/home /home then coppied the master passwd file and group file to the 2.2.7 All worked for me just fine Keith On 08-Oct-98 Michael Doyle wrote: >>> 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 ---------------------------------- E-Mail: Keith Anderson Date: 09-Oct-98 Time: 08:43:58 This message was sent by XFMail ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message