From owner-freebsd-questions Fri Aug 2 6:26: 3 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 B214737B400 for ; Fri, 2 Aug 2002 06:25:58 -0700 (PDT) Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id A726D43E6E for ; Fri, 2 Aug 2002 06:25:57 -0700 (PDT) (envelope-from jarnold@knightridder.com) Received: from jimarnold.org (a11a174.neo.rr.com [204.210.192.174]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id g72DPT601283; Fri, 2 Aug 2002 09:25:31 -0400 (EDT) Received: from [192.168.0.4] (mac [192.168.0.4]) by jimarnold.org (Postfix) with ESMTP id DE3B7368F; Fri, 2 Aug 2002 09:25:24 -0400 (EDT) Mime-Version: 1.0 X-Sender: jim@spike Message-Id: In-Reply-To: <20020802102902.A21241@ei.bzerk.org> References: <20020802013803.26506.qmail@web40016.mail.yahoo.com> <20020802102902.A21241@ei.bzerk.org> Date: Fri, 2 Aug 2002 09:25:19 -0400 To: Ruben de Groot , Mr Dan Peck From: Jim Arnold Subject: Re: RedHat to FreeBSD Migration Cc: freebsd-questions@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" 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 >On Thu, Aug 01, 2002 at 06:38:03PM -0700, Mr Dan Peck typed: >> 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! On pages 524-525 of FreeBSD Unleashed by Michael Urban and Brian Tiemann there is perl script to covert a Linux user database to use in FreebSD. However, the script does not work. I tried to contact the authors and even the publisher. The authors never responded and the publisher said he couldn't get them to respond either. Maybe you or someone else can use this script as a starting point to fix it. It's beyond my capabilities. Jim > >Hi Dan, > >Since I'm not aware of any automated tool for doing what you want, here's >what I would do: > >- Look at FreeBSD's master.passwd file, each entry consists of the >following fields, seperated by ':' > > name User's login name. > > password User's encrypted password. > > uid User's id. > > gid User's login group id. > > class User's login class. > > change Password change time. > > expire Account expiration time. > > gecos General information about the user. > > home_dir User's home directory. > > shell User's login shell. > >- Find the corresponding fields in RedHat's passwd and shadow files. > >- Write a (perl?) script to create a master.passwd from the passwd >and shadow files > >- Move the master.passwd file to the FreeBSD box in the /etc directory >and run the command: > ># pwd_mkdb -p /etc/master.passwd > >That will create the necessary password database files for you. > >Disclaimer: I don't know what format RH uses for its encrypted passwords, >so maybe you'll have to write another script to generate new passwords >for each user. > >hope this helps, > >Ruben > >> >> -Dan >> dan037@yahoo.com >> >> >> >> __________________________________________________ >> Do You Yahoo!? >> Yahoo! Health - Feel better, live better >> http://health.yahoo.com >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-questions" in the body of the message > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message