Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Feb 1997 15:05:28 -0800 (PST)
From:      Snob Art Genre <ben@narcissus.ml.org>
To:        Poul-Henning Kamp <phk@critter.dk.tfs.com>
Cc:        security@FreeBSD.ORG
Subject:   Re: changing password... 
Message-ID:  <Pine.BSF.3.91.970215150342.11765A-100000@narcissus.ml.org>
In-Reply-To: <14512.856047887@critter.dk.tfs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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$"?
 
> --
> 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.
> 



 Ben

"You have your mind on computers, it seems."




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970215150342.11765A-100000>