From owner-freebsd-questions Fri Aug 2 1:28:20 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 5122F37B400 for ; Fri, 2 Aug 2002 01:28:16 -0700 (PDT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0D5743E4A for ; Fri, 2 Aug 2002 01:28:14 -0700 (PDT) (envelope-from fbsd-q@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.5/8.12.5) with ESMTP id g728T25M021527; Fri, 2 Aug 2002 10:29:02 +0200 (CEST) (envelope-from stable@ei.bzerk.org) Received: (from stable@localhost) by ei.bzerk.org (8.12.5/8.12.5/Submit) id g728T2kU021526; Fri, 2 Aug 2002 10:29:02 +0200 (CEST) Date: Fri, 2 Aug 2002 10:29:02 +0200 From: Ruben de Groot To: Mr Dan Peck Cc: freebsd-questions@FreeBSD.ORG Subject: Re: RedHat to FreeBSD Migration Message-ID: <20020802102902.A21241@ei.bzerk.org> References: <20020802013803.26506.qmail@web40016.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020802013803.26506.qmail@web40016.mail.yahoo.com>; from dan037@yahoo.com on Thu, Aug 01, 2002 at 06:38:03PM -0700 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! 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