Date: Thu, 18 May 2000 17:25:27 -0700 From: Jan Koum <jkb@ethereal.net> To: "Chris D. Faulhaber" <jedgar@fxp.org> Cc: "Daniel C. Sobral" <dcs@newsguy.com>, Dylan parker <dylan_parker69@hotmail.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: i have 4 pwd.db Message-ID: <20000518172527.J10836@ethereal.net> In-Reply-To: <Pine.BSF.4.21.0005180845580.795-100000@earth.fxp>; from jedgar@fxp.org on Thu, May 18, 2000 at 08:46:35AM -0400 References: <3923CA91.F7761CED@newsguy.com> <Pine.BSF.4.21.0005180845580.795-100000@earth.fxp>
index | next in thread | previous in thread | raw e-mail
On Thu, May 18, 2000 at 08:46:35AM -0400, "Chris D. Faulhaber" <jedgar@fxp.org> wrote:
> On Thu, 18 May 2000, Daniel C. Sobral wrote:
> > Dylan parker wrote:
> > >
> > > I want desencrypt the files pwd.db Help me please
> >
> > Password files are not decryptable by design.
> >
>
> And encrypted passwords are not stored in pwd.db (see spwd.db)
>
And the hash itself is of course possible to recover from spwd.db:
$ cat c.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <pwd.h>
struct passwd *pw;
int main()
{
while (pw = getpwent()) {
printf("%s:%s:%d:%d:%d:%d:%s:%s:%s:%s\n", pw->pw_name, pw->pw_passwd,
pw->pw_uid, pw->pw_gid, (int)pw->pw_change, (int)pw->pw_expire,
pw->pw_class, pw->pw_gecos, pw->pw_dir, pw->pw_shell);
}
}
$ make c
$ sudo ./c
-- yan
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000518172527.J10836>
