From owner-freebsd-current@freebsd.org Thu Feb 18 13:16:32 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9E43AACDB5 for ; Thu, 18 Feb 2016 13:16:32 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B1268B0F for ; Thu, 18 Feb 2016 13:16:32 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) for freebsd-current@freebsd.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1aWORa-001G7t-H0>; Thu, 18 Feb 2016 14:16:30 +0100 Received: from p578a69f9.dip0.t-ipconnect.de ([87.138.105.249] helo=freyja.zeit4.iv.bundesimmobilien.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) for freebsd-current@freebsd.org with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (envelope-from ) id <1aWORa-003z1U-64>; Thu, 18 Feb 2016 14:16:30 +0100 Date: Thu, 18 Feb 2016 14:16:24 +0100 From: "O. Hartmann" To: freebsd-current Subject: HELP: Howtwo create a passwd-suitable hash for usage with psswd -H 0? Message-ID: <20160218141624.5f560f2d@freyja.zeit4.iv.bundesimmobilien.de> Organization: FU Berlin X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: 87.138.105.249 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 13:16:33 -0000 Hello out there, I run into a problem and digging for a solution didn't work out. Problem: I need a string that reflects the hashed password for the usage with passwd -H 0 I think the procedure is using sha512 -s Password and using this output for further processing, but how? I looked for a possibility to emmit the hash created by passwd to be used, but I couldn't find anything useful. It is crucial that we use utilities available in the base system of FreeBSD, so no fancy Python or Perl scripts. I might have overlooked something in my desperate quest, so I'm sorry if the task is trivial and already standard. Kind regards and than you very much in advance, oh