From owner-freebsd-questions@FreeBSD.ORG Fri Sep 24 15:55:54 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 71E3616A75E for ; Fri, 24 Sep 2004 15:55:54 +0000 (GMT) Received: from post5.inre.asu.edu (post5.inre.asu.edu [129.219.110.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5325043D2F for ; Fri, 24 Sep 2004 15:55:54 +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]) <0I4J00D2RYNXFU@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 i8OFoK71017944; Fri, 24 Sep 2004 08:50:20 -0700 (MST) Received: by moroni.pp.asu.edu (Postfix, from userid 500) id 228241049; 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 h3O6F5W29140 for ; Wed, 23 Apr 2003 23:15:05 -0700 Received: from conversion.post1.inre.asu.edu by asu.edu (PMDF V6.1 #40110) id <0HDU00J01415G4@asu.edu> for iddwb@moroni.pp.asu.edu (ORCPT David.Bear@asu.edu); Wed, 23 Apr 2003 23:15:05 -0700 (MST) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by asu.edu (PMDF V6.1 #40110) with ESMTP id <0HDU00J2Y41449@asu.edu> for iddwb@moroni.pp.asu.edu (ORCPT David.Bear@asu.edu); Wed, 23 Apr 2003 23:15:05 -0700 (MST) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.9/8.12.9) with ESMTP id h3O6F1M4086401; Thu, 24 Apr 2003 18:15:01 +1200 Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.9/8.12.9/Submit) id h3O6F1fj086400; Thu, 24 Apr 2003 18:15:01 +1200 (NZST) From: Jonathan Chen In-reply-to: <20030423222836.A28992@asu.edu> To: dwbear75@gmail.com Message-id: <20030424061501.GC86252@grimoire.chen.org.nz> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline Old-To: David Bear User-Agent: Mutt/1.4.1i Lines: 15 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:54 -0000 X-Original-Date: Thu, 24 Apr 2003 18:15:01 +1200 X-List-Received-Date: Fri, 24 Sep 2004 15:55:54 -0000 On Wed, Apr 23, 2003 at 10:28:36PM -0700, David Bear wrote: > 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? pw(8) is your friend. -- Jonathan Chen ---------------------------------------------------------------------- Power corrupts, Absolute Power is pretty neat