From owner-freebsd-questions Thu Aug 20 08:54:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA00501 for freebsd-questions-outgoing; Thu, 20 Aug 1998 08:54:48 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from timbuk-fddi.cray.com (timbuk-e1.cray.com [128.162.1.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA00483; Thu, 20 Aug 1998 08:54:43 -0700 (PDT) (envelope-from orpheus@cray.com) Received: from ledzep.cray.com (ledzep.cray.com [137.38.226.97]) by timbuk-fddi.cray.com (8.8.8/CRI-gate-news-1.3) with ESMTP id KAA25497; Thu, 20 Aug 1998 10:53:57 -0500 (CDT) Received: from sooner.cray.com (sooner.cray.com [128.162.192.29]) by ledzep.cray.com (8.8.8/craymail-smart) with ESMTP id KAA2330821; Thu, 20 Aug 1998 10:53:57 -0500 (CDT) Received: from localhost (orpheus@localhost) by sooner.cray.com (8.8.8/CRI-client-1.4) with SMTP id KAA128739; Thu, 20 Aug 1998 10:53:56 -0500 (CDT) Date: Thu, 20 Aug 1998 10:53:55 -0500 (CDT) From: Jeffrey Dunitz X-Sender: orpheus@sooner To: Malte Lance cc: Lee Reese , freebsd-questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG Subject: Re: Web Server Linux to FreeBSD In-Reply-To: <13787.62792.159201.16202@neuron.webmore.de> Message-ID: X-Blargh: This message is blargh MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 20 Aug 1998, Malte Lance wrote: >Date: Thu, 20 Aug 1998 15:53:05 +0200 (CEST) >From: Malte Lance >To: Jeffrey Dunitz >Cc: Lee Reese , freebsd-questions@FreeBSD.ORG, > freebsd-isp@FreeBSD.ORG >Subject: Re: Web Server Linux to FreeBSD > >Jeffrey Dunitz writes: > > On Wed, 19 Aug 1998, Lee Reese wrote: > > > > >Date: Wed, 19 Aug 1998 15:20:44 -0400 > > >From: Lee Reese > > > > > >Hi. I'm in the process of converting our web server from Slackware > > >Linux to FreeBSD (Apache). We need a down and dirty way to transfer the > > >/etc/passwd file to a format the FreeBSD understands. Please resopnd > > >via e-mail. Thanks. > > > > > > I wish I could go into lots of detail here, but I can't. > > > > > > So there's two example password entries, one from a standard unix password > > file and one from a FreeBSD master.passwd. Note that freebsd has some > > extra :0:0: stuff. > > Also notice that the fields are separated by : characters. > >There is more than this. There is an essential difference >between DES-encryption and MD5-encryption of passwords. Both >is possible with FreeBSD. I don't know about Linux. >So far there is no easy way to convert between DES- and >MD5-encryption. that's true; I thought of that right after I sent that mail. yesterday or a few days ago, someone asked how to set up a FreeBSD machine so that it would recognize DES passwords, but when the user changed it, it would be encrypted with MD5. Look back a few days and you should find the thread I'm talking about. > >BTW, Jeffrey, what version of FreeBSD are you running ? 2.2.6, thinking of going to 3.0. > >Malte. > > > > > > > You can use awk to spit out fields and arbitrary data: > > cat /etc/passwd | awk -F: '{print $1":"$2}' > > just prints the first two fields with the colon. You have to quote the > > colon like that, or it won't work right. > > You can then figure out how to add in the extra ":0:0" stuff on your own. > > Should be easy. > > > > > > Note that there are some religious fanatics who would insist that the only > > way to do this right is to use Perl. Other crazies will tell you that you > > must use sed. I know how to do it with awk, and it took me about 45 seconds > > to actually figure out how to do it. It would take me another 45 to actually > > generate a working password file with the extra stuff in there. I don't know > > if I could figure out how to make perl do that same thing. I'm not a perl > > god. Your mileage may vary. > > > > > > > >Lee > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > > >with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > > - -- -- --- --- --- ---- ---- ----- ----- ----- ----- ------| -------------- > > Jeffrey Dunitz (orpheus@cray.com) 612-683-7266 | it's hard times > > Information Services | befallen the > > ===== Cray Research, now Silicon Graphics = == === === =====| sole survivors. > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > - -- -- --- --- --- ---- ---- ----- ----- ----- ----- ------| -------------- Jeffrey Dunitz (orpheus@cray.com) 612-683-7266 | it's hard times Information Services | befallen the ===== Cray Research, now Silicon Graphics = == === === =====| sole survivors. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message