Date: Tue, 17 Jan 2006 20:31:27 -0800 From: Micah <micahjon@ywave.com> Cc: freeBSD <freebsd-questions@freebsd.org> Subject: Re: Creating alternate passwd file (solved) Message-ID: <43CDC49F.3060203@ywave.com> In-Reply-To: <43CDB822.8010609@ywave.com> References: <43CDB822.8010609@ywave.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43CDC49F.3060203>