From owner-freebsd-questions@FreeBSD.ORG Wed Apr 23 23:18:13 2003 Return-Path: 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 C3F2837B401 for ; Wed, 23 Apr 2003 23:18:13 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18BD043FBD for ; Wed, 23 Apr 2003 23:18:13 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h3O6IBJD058394; Thu, 24 Apr 2003 01:18:11 -0500 (CDT) (envelope-from dan) Date: Thu, 24 Apr 2003 01:18:11 -0500 From: Dan Nelson To: David Bear Message-ID: <20030424061811.GI50895@dan.emsphone.com> References: <20030423222836.A28992@asu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030423222836.A28992@asu.edu> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-questions@freebsd.org Subject: Re: batchmode adding user accounts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2003 06:18:14 -0000 In the last episode (Apr 23), David Bear said: > I have migrated a linux box to freebsd. I would like to add all the > user accounts from linux to bsd but the format of /etc/passwd vs > master.password is problematic. > > what I would like to try is pull out the user id from my old passwd > file and somehow batchmode add them to my new system. I can use awk > to get the old ids. But is there utility that will accept a list of > user ids to add to master.password? The passwd(5) manpage has an awk script at the bottom that will convert regular passwd to master.passwd format. -- Dan Nelson dnelson@allantgroup.com