Date: Fri, 2 Aug 2002 09:25:19 -0400 From: Jim Arnold <jarnold@knightridder.com> To: Ruben de Groot <fbsd-q@bzerk.org>, Mr Dan Peck <dan037@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: RedHat to FreeBSD Migration Message-ID: <a05111b02b97035a8e9b1@[192.168.0.4]> In-Reply-To: <20020802102902.A21241@ei.bzerk.org> References: <20020802013803.26506.qmail@web40016.mail.yahoo.com> <20020802102902.A21241@ei.bzerk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a05111b02b97035a8e9b1>