From owner-freebsd-questions@FreeBSD.ORG Fri Sep 24 15:55:35 2004 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 2251916A5C3 for ; Fri, 24 Sep 2004 15:55:35 +0000 (GMT) Received: from post5.inre.asu.edu (post5.inre.asu.edu [129.219.110.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 372FB43DA2 for ; Fri, 24 Sep 2004 15:55:26 +0000 (GMT) (envelope-from David.Bear@asu.edu) Received: from conversion.post5.inre.asu.edu by asu.edu (PMDF V6.1-1X6 #30769) id <0I4J00D01YNYMJ@asu.edu> for freebsd-questions@freebsd.org; Fri, 24 Sep 2004 08:50:22 -0700 (MST) Received: from smtp.asu.edu (smtp.asu.edu [129.219.110.107]) <0I4J00C77YNYHY@asu.edu>; Fri, 24 Sep 2004 08:50:22 -0700 (MST) Received: from moroni.pp.asu.edu (moroni.pp.asu.edu [129.219.69.200]) (8.12.10/8.12.10/asu_smtp_relay,nullclient,tcp_wrapped) with ESMTP id i8OFoK71017947; Fri, 24 Sep 2004 08:50:20 -0700 (MST) Received: by moroni.pp.asu.edu (Postfix, from userid 500) id 3CA51FD2; Fri, 24 Sep 2004 08:49:10 -0700 (MST) Received: from post1.inre.asu.edu (post1.inre.asu.edu [129.219.110.72]) by moroni.pp.asu.edu (8.11.6/8.11.6) with ESMTP id h3O6IDW29152 for ; Wed, 23 Apr 2003 23:18:13 -0700 Received: from conversion.post1.inre.asu.edu by asu.edu (PMDF V6.1 #40110) id <0HDU00K0146D5A@asu.edu> for iddwb@moroni.pp.asu.edu (ORCPT David.Bear@asu.edu); Wed, 23 Apr 2003 23:18:13 -0700 (MST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by asu.edu (PMDF V6.1 #40110) with ESMTP id <0HDU00GNG46D7Y@asu.edu> for iddwb@moroni.pp.asu.edu (ORCPT David.Bear@asu.edu); Wed, 23 Apr 2003 23:18:13 -0700 (MST) 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) From: Dan Nelson In-reply-to: <20030423222836.A28992@asu.edu> To: dwbear75@gmail.com Message-id: <20030424061811.GI50895@dan.emsphone.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline Old-To: David Bear User-Agent: Mutt/1.5.4i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Lines: 16 References: <20030423222836.A28992@asu.edu> 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: , Date: Fri, 24 Sep 2004 15:55:35 -0000 X-Original-Date: Thu, 24 Apr 2003 01:18:11 -0500 X-List-Received-Date: Fri, 24 Sep 2004 15:55:35 -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