From owner-freebsd-questions Wed Mar 24 12:10:56 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.vnet.net (smtp2.vnet.net [166.82.1.32]) by hub.freebsd.org (Postfix) with ESMTP id 762C614D14 for ; Wed, 24 Mar 1999 12:10:55 -0800 (PST) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp2.vnet.net (8.9.1a/8.9.1) with ESMTP id PAA10940; Wed, 24 Mar 1999 15:12:15 -0500 (EST) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.2/8.8.5) with ESMTP id PAA31045; Wed, 24 Mar 1999 15:10:28 -0500 (EST) Received: (from rivers@localhost) by lakes.dignus.com (8.9.2/8.6.9) id PAA72416; Wed, 24 Mar 1999 15:10:28 -0500 (EST) Date: Wed, 24 Mar 1999 15:10:28 -0500 (EST) From: Thomas David Rivers Message-Id: <199903242010.PAA72416@lakes.dignus.com> To: freebsd-questions@FreeBSD.ORG, seth@pchelp.net Subject: Re: Moving users to a second server In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello all, > > I have one FreeBSD 2.2.6 server with about 300+ users, each user has a > /home/user directory. > What is the easiest way to replicated the users and directories to a > second new FreeBSD 3.1 server? > > Would a script file reading the /etc/master.passwd file then using > "adduser (parameters)" work? > If so...anyone have a sample script. > Thanks, Actually, this is what I do: On the new machine: vipw Read the old /etc/master.passwd from the old machine. Edit out duplicate entries (like "root", "toor", "uucp", etc...) *poof* - you're done. This assumes you're using the same encryption scheme on both machines. The result is that every has the same passwords they had before, the same UID, GID, etc... Then, you simply need to copy all the /home/user directories to the new machine & you're finished. - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message