Date: Sun, 16 Feb 1997 00:08:50 +0100 From: Poul-Henning Kamp <phk@critter.dk.tfs.com> To: Snob Art Genre <ben@narcissus.ml.org> Cc: security@FreeBSD.ORG Subject: Re: changing password... Message-ID: <14533.856048130@critter.dk.tfs.com> In-Reply-To: Your message of "Sat, 15 Feb 1997 15:05:28 PST." <Pine.BSF.3.91.970215150342.11765A-100000@narcissus.ml.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.3.91.970215150342.11765A-100000@narcissus.ml.org>, Snob Art Genre writes: >On Sun, 16 Feb 1997, Poul-Henning Kamp wrote: > >> In message <Pine.BSF.3.91.970215145642.11702A-100000@narcissus.ml.org>, Snob Art Genre writes: >> >On Sat, 15 Feb 1997, Poul-Henning Kamp wrote: >> > >> >> >> >> Why don't we have an option for /usr/bin/passwd to input a precoded >> >> password ? >> >> >> >> $ passwd -c phk >> >> Please enter encrypted password: $1$8cEEj84y$GCYmM39miP8Fc9K8iAHTI/ >> >> Please reenter: $1$8cEEj84y$GCYmM39miP8Fc9K8iAHTI/ >> >> $ >> >> >> >> I know that this is a good way to hose yourself, but it would also >> >> have some useful features I think. >> >> >> >> Comments ? >> > >> >Well, root can already do it with vipw, and why would anyone else need to? >> >> Across an unsecure network it beats typing your password in cleartext... > >Ah, that's very clever. How do you hash it in a way that the password >file would like? Is it just a matter of running the password through md5 >and prepending "$1$"? man 3 crypt -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@tfs.com TRW Financial Systems, Inc. Power and ignorance is a disgusting cocktail.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14533.856048130>