Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2008 09:18:00 +0300
From:      "Ivan \"Rambius\" Ivanov" <rambiusparkisanius@gmail.com>
To:        "Adam Zaleski" <talk@holon.urwis.cc>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to generate password hashes for vipw and chpass
Message-ID:  <89ce7f740810052318u6bf50560h8c79549f25ece641@mail.gmail.com>
In-Reply-To: <48E9A4D1.6020008@holon.urwis.cc>
References:  <89ce7f740810052214k4419d939s8bb8ebce5e703626@mail.gmail.com> <48E9A4D1.6020008@holon.urwis.cc>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Adam,

On Mon, Oct 6, 2008 at 8:40 AM, Adam Zaleski <talk@holon.urwis.cc> wrote:
> Ivan "Rambius" Ivanov pisze:
>
>> # /sbin/md5 -s newpassword
>> and then I passed the output to chpass. I tried to use the new
>> password for the next login but it failed - so I believe this is
>> wrong.
>> Can you please show me how to generate the password hashes?
>
> You can add new account with one command like this:
>
> echo user_password |pw user add new_user -h0
>
> Also if you only want to generate valid password hash
> you can use 'openssl passwd -1 new_password'
Thank you, this is the command I was looking for.

Regards
Ivan

-- 
Tangra Mega Rock: http://www.radiotangra.com



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