From owner-freebsd-questions Fri Aug 2 8:11: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A84FA37B400 for ; Fri, 2 Aug 2002 08:11:04 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1817343E42 for ; Fri, 2 Aug 2002 08:11:04 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id g72FB2T15847; Fri, 2 Aug 2002 11:11:02 -0400 (EDT) From: Jerry McAllister Message-Id: <200208021511.g72FB2T15847@clunix.cl.msu.edu> Subject: Re: RedHat to FreeBSD Migration To: dan037@yahoo.com (Mr Dan Peck) Date: Fri, 2 Aug 2002 11:11:02 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <20020802013803.26506.qmail@web40016.mail.yahoo.com> from "Mr Dan Peck" at Aug 01, 2002 06:38:03 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Hello List, > > I've been tasked with upgrading a server with > approximately 5,000 users (at a small ISP). The > current server runs RedHat 6.2, and I would prefer to > run FreeBSD 4.6.1 on the new one, but would need to be > able to copy the password and group files from the > RedHat box as we don't have the resources to re-enter > all of the users by hand. Any information on > migrating the passwd/and group files would be very > helpful. I'm not currently subscribed to the list, so > please CC: your responses to me. Thanks! You should be able to copy over the group file pretty much as is. Just make sure there are no conflicts or overlaps eg two different groups using the same GID or two groups of the same name with different GIDs. For the passwd file, probably the easiest thing is to create a little perl script that reads the shadow passwd file from the LINUX machine and creates and executes adduser(8) commands on the FreeBSD machine for each entry. That way all of the passwd, master.passwd and password database files will get updated correctly. Make sure and throw away all the entries on the old machine that shouldn't be transferred, such as root and ftp, etc. ////jerry > > -Dan > dan037@yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message