Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2013 00:55:30 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: setting encrypted password for a user
Message-ID:  <20131223005530.352d08fb@gumby.homeunix.com>
In-Reply-To: <79C9317F-84B9-4F8F-8D5F-4DE0B63ED056@fisglobal.com>
References:  <1387690591.75236.YahooMailNeo@web165002.mail.bf1.yahoo.com> <79C9317F-84B9-4F8F-8D5F-4DE0B63ED056@fisglobal.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 22 Dec 2013 05:47:08 +0000
Teske, Devin wrote:

> 
> On Dec 21, 2013, at 9:36 PM, M. V. wrote:
> 
> > hello,
> > 
> > I'm using FreeBSD-8.2. I have a program which sends "MD5 
> > of the new password" of a user to me, and I want to reset user's
> > password with it. I realized I can use "chpass" to set encrypted
> > password for a user, but it needs salt and I couldn't make it work
> > without it. so I wanted to know:
> > - can I set user's password in FreeBSD if I have only MD5 of the
> > password? how?
> > 
> 
> echo 'MD5-HASH' | pw usermod username -H 0

Presumably that's  just a way inserting the salted hash. If
you simply have the md5 of a password it shouldn't be possible to
create a password entry.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131223005530.352d08fb>