From owner-freebsd-questions Thu Mar 22 8:44:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id A36A637B71C for ; Thu, 22 Mar 2001 08:44:28 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.11.3/8.11.3) id f2MGiJL16591; Thu, 22 Mar 2001 10:44:19 -0600 (CST) (envelope-from dan) Date: Thu, 22 Mar 2001 10:44:19 -0600 From: Dan Nelson To: dan kelley Cc: freebsd-questions@FreeBSD.ORG Subject: Re: converting a linux /etc/passwd to freebsd /etc/master.passwd Message-ID: <20010322104418.A4116@dan.emsphone.com> References: <20010322164027.29414.qmail@web4304.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i In-Reply-To: <20010322164027.29414.qmail@web4304.mail.yahoo.com>; from "dan kelley" on Thu Mar 22 08:40:27 GMT 2001 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Mar 22), dan kelley said: > has anyone come across a relatively painless way to do this? > > i have a large number of users that i need to migrate, and i'd rather > not have to recreate the entries on the freebsd box by hand. run pwunconv on the Linux end, copy it over to freebsd, run awk < passwd.linux > /etc/master.passwd 'BEGIN { FS = ":"} { print $1 ":" $2 ":" $3 ":" $4 "::0:0:" $5 ":" $6 ":" $7 }' run pwd_mkdb, and you should be set. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message