From owner-freebsd-questions Fri Aug 2 8:42:15 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 E067237B400 for ; Fri, 2 Aug 2002 08:42:10 -0700 (PDT) Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5663B43E4A for ; Fri, 2 Aug 2002 08:42:10 -0700 (PDT) (envelope-from moti@flncs.com) Received: from user-119aekg.biz.mindspring.com ([66.149.58.144] helo=ns.flncs.com) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17aeZ2-00048A-00; Fri, 02 Aug 2002 08:42:04 -0700 Received: from moti (cylex [12.27.148.78]) by ns.flncs.com (Postfix) with SMTP id C6CEE558F; Fri, 2 Aug 2002 11:46:49 -0400 (EDT) Message-ID: <028701c23a3b$1a16ab90$fd6e34c6@moti> From: "Moti Levy" To: "Moti Levy" , "Mr Dan Peck" Cc: References: <200208021511.g72FB2T15847@clunix.cl.msu.edu> <026801c23a3a$e19a86b0$fd6e34c6@moti> Subject: Re: RedHat to FreeBSD Migration Date: Fri, 2 Aug 2002 11:41:37 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 typo it should be pwunconv .... ------------------------------------------------- Moti www.flncs.com ------------------------------------------------- be careful what you wish for ... ------------------------------------------------- ----- Original Message ----- From: "Moti Levy" To: "Mr Dan Peck" Cc: Sent: Friday, August 02, 2002 11:39 AM Subject: Re: RedHat to FreeBSD Migration > How about this ? ( tested on my debian 3.0 and FreeBSD 4.6 with 5 test > accounts ) > on linux box > $pwunconf > $cp /etc/passwd /root/passwd.conv > $awk -F":" '{print $1":"$2":"$3":"$4":put login class here:put pass change > time > here:put pass expire time here:"$5":"$6":"7}' /root/passwd.conv > > /root/passwd.bsd > $scp /root/passwd.bsd user@freebsd:~/ > > on freebsd box > $vipw > for within vipw , go to last line > :r! cat ~/user/passwd.fbsd > save > > test , done > let me know if it worked ( it did for me ) > NOTE: dont forget to delete the passwd.conf and passwd.fbsd files and to run > pwconv on the linux box . > > > ------------------------------------------------- > Moti > www.flncs.com > ------------------------------------------------- > be careful what you wish for ... > ------------------------------------------------- > > ----- Original Message ----- > From: "Jerry McAllister" > To: "Mr Dan Peck" > Cc: > Sent: Friday, August 02, 2002 11:11 AM > Subject: Re: RedHat to FreeBSD Migration > > > > > > > > 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 > > > > > > > > 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