From owner-freebsd-questions@FreeBSD.ORG Wed Apr 23 23:15:06 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 5252A37B401 for ; Wed, 23 Apr 2003 23:15:06 -0700 (PDT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AEEF43FD7 for ; Wed, 23 Apr 2003 23:15:05 -0700 (PDT) (envelope-from jonc@chen.org.nz) 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 (NZST) (envelope-from jonc@grimoire.chen.org.nz) 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) Date: Thu, 24 Apr 2003 18:15:01 +1200 From: Jonathan Chen To: David Bear Message-ID: <20030424061501.GC86252@grimoire.chen.org.nz> 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> User-Agent: Mutt/1.4.1i 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:15:06 -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