From owner-freebsd-questions@FreeBSD.ORG Wed Jan 18 04:31:33 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6F35B16A41F for ; Wed, 18 Jan 2006 04:31:33 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: from relay2.av-mx.com (relay2.av-mx.com [137.118.16.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA9C343D49 for ; Wed, 18 Jan 2006 04:31:32 +0000 (GMT) (envelope-from micahjon@ywave.com) X-Virus-Scan-Time: 0 Received: from [137.118.16.60] (HELO mx2.av-mx.com) by relay2.av-mx.com (CommuniGate Pro SMTP 4.2.10) with SMTP id 141457834 for freebsd-questions@freebsd.org; Tue, 17 Jan 2006 23:31:29 -0500 Received: (qmail 22149 invoked from network); 18 Jan 2006 04:31:29 -0000 Received: from dsl-12-178-99-200.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@12.178.99.200) by 0 with SMTP; 18 Jan 2006 04:31:29 -0000 X-CLIENT-IP: 12.178.99.200 X-CLIENT-HOST: dsl-12-178-99-200.ywave.com Message-ID: <43CDC49F.3060203@ywave.com> Date: Tue, 17 Jan 2006 20:31:27 -0800 From: Micah User-Agent: Thunderbird 1.5 (X11/20060113) MIME-Version: 1.0 CC: freeBSD References: <43CDB822.8010609@ywave.com> In-Reply-To: <43CDB822.8010609@ywave.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Creating alternate passwd file (solved) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2006 04:31:33 -0000 Micah wrote: > > I'm trying to create a master.passwd file that I can crack as part of a > demo for an IAS class. I don't want to muck about with my live > master.passwd or even a copy of it, since the passwords there take too > long to crack. > > I tried copying /usr/src/etc/master.passwd and /usr/src/etc/group to and > empty folder called /root/crackdemo/ I then did: > pw -V /root/crackdemo/ usermod root -h 0 > new password for user root: secret > pw: user 'root' does not exist (NIS?) > > I then tried: > pwd_mkdb -d /root/crackdemo/ master.passwd > pw -V /root/crackdemo/ usermod root -h 0 > new password for user root: secret > pw: user 'root' does not exist (NIS?) > > What did I do wrong? Any suggestions? > > Thanks, > Micah Shows what taking a few minute break will do. I did a pwd_mkdb -d /root/crackdemo/ -p master.passwd, (I added the -p flag) and now pw works with it. Now on to making some users with stupid passwords. Sorry for the noise, Micah