From owner-freebsd-security Thu May 3 6:24:13 2001 Delivered-To: freebsd-security@freebsd.org Received: from cyclone.tornadogroup.com (cyclone.tornadogroup.com [212.172.155.83]) by hub.freebsd.org (Postfix) with ESMTP id 6B67B37B424 for ; Thu, 3 May 2001 06:24:10 -0700 (PDT) (envelope-from matthew.seaman@tornadogroup.com) Received: from claudette.e1.tornadogroup.com (root@claudette.e1.tornadogroup.com [192.168.0.77]) by cyclone.tornadogroup.com (8.10.0.Beta10/8.10.0.Beta10) with ESMTP id f43DO3D05829; Thu, 3 May 2001 14:24:03 +0100 (BST) Received: from tornadogroup.com (matthew@localhost [127.0.0.1]) by claudette.e1.tornadogroup.com (8.11.3/8.11.3) with ESMTP id f43DO0536181; Thu, 3 May 2001 14:24:00 +0100 (BST) (envelope-from matthew.seaman@tornadogroup.com) Message-ID: <3AF15BF0.1AF76CF@tornadogroup.com> Date: Thu, 03 May 2001 14:24:00 +0100 From: Matthew Seaman X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-STABLE i386) X-Accept-Language: en-GB, en MIME-Version: 1.0 To: Brian Tiemann Cc: freebsd-security@FreeBSD.ORG Subject: Re: useradd/adduser References: <200105021707.KAA06632@smtpout.mac.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Brian Tiemann wrote: > Okay, so... maybe I'm missing something, but how does one go about > encrypting the password in a way compatible with master.passwd? Straight > md5 doesn't do it... how do you get the "$1$7tGUS$teGz..." string? perl -e 'print crypt("plaintext", "\$1\$saltxxxx"), "\n"' Where `saltxxx' should typically be 8 random characters from the set [./0-9A-Za-z] Matthew -- Matthew Seaman Tel: 01628 498661 Certe, Toto, sentio nos in Kansate non iam adesse. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message