Creating alternate passwd file (solved)
Micah
micahjon at ywave.com
Tue Jan 17 20:31:33 PST 2006
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
More information about the freebsd-questions
mailing list