Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Dec 2013 05:47:08 +0000
From:      "Teske, Devin" <>
To:        "M. V." <>
Cc:        Devin Teske <>, "Teske, Devin" <>, FreeBSD Questions <>
Subject:   Re: setting encrypted password for a user
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

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=20
> 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=20
> password for a user, but it needs salt and I couldn't make it work=20
> 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

The information contained in this message is proprietary and/or confidentia=
l. If you are not the intended recipient, please: (i) delete the message an=
d all copies; (ii) do not disclose, distribute or use the message in any ma=
nner; and (iii) notify the sender immediately. In addition, please be aware=
 that any message addressed to our domain is subject to archiving and revie=
w by persons other than the intended recipient. Thank you.

Want to link to this message? Use this URL: <>