From owner-freebsd-questions@FreeBSD.ORG Mon Oct 6 05:59:38 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 952E410656B5 for ; Mon, 6 Oct 2008 05:59:38 +0000 (UTC) (envelope-from talk@holon.urwis.cc) Received: from poczta.pwsz.elblag.pl (ns2.pwsz.elblag.pl [82.177.38.2]) by mx1.freebsd.org (Postfix) with ESMTP id 503D58FC0C for ; Mon, 6 Oct 2008 05:59:38 +0000 (UTC) (envelope-from talk@holon.urwis.cc) Received: from poczta.pwsz.elblag.pl (localhost [127.0.0.1]) by poczta.pwsz.elblag.pl (Postfix) with ESMTP id 2F5C317B89C; Mon, 6 Oct 2008 07:40:21 +0200 (CEST) Received: from [82.177.38.80] (artax.pwsz.elblag.pl [82.177.38.80]) by poczta.pwsz.elblag.pl (Postfix) with ESMTPSA id B5B0A17B891; Mon, 6 Oct 2008 07:40:20 +0200 (CEST) Message-ID: <48E9A4D1.6020008@holon.urwis.cc> Date: Mon, 06 Oct 2008 07:40:33 +0200 From: Adam Zaleski User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: "Ivan \"Rambius\" Ivanov" , freebsd-questions@freebsd.org References: <89ce7f740810052214k4419d939s8bb8ebce5e703626@mail.gmail.com> In-Reply-To: <89ce7f740810052214k4419d939s8bb8ebce5e703626@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: PWSZ Antivirus software Cc: Subject: Re: How to generate password hashes for vipw and chpass X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2008 05:59:38 -0000 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'