From owner-freebsd-security Wed May 2 10: 7:51 2001 Delivered-To: freebsd-security@freebsd.org Received: from smtpout.mac.com (smtpout.mac.com [204.179.120.89]) by hub.freebsd.org (Postfix) with ESMTP id 4698037B422 for ; Wed, 2 May 2001 10:07:49 -0700 (PDT) (envelope-from btman@mac.com) Received: by smtpout.mac.com; Wed, 2 May 2001 10:07:19 -0700 (PDT) Message-Id: <200105021707.KAA06632@smtpout.mac.com> Received: from asmtp01.mac.com ([10.13.10.65]) by smtp-relay01.mac.com (Netscape Messaging Server 4.15) with ESMTP id GCPWW700.2G1 for ; Wed, 2 May 2001 10:07:19 -0700 Received: from localhost ([64.2.43.44]) by asmtp01.mac.com (Netscape Messaging Server 4.15) with ESMTP id GCPWW700.LOB for ; Wed, 2 May 2001 10:07:19 -0700 Date: Wed, 2 May 2001 10:07:18 -0700 Content-Type: text/plain; format=flowed; charset=us-ascii X-Mailer: Apple Mail (2.388) From: Brian Tiemann To: freebsd-security@FreeBSD.ORG Mime-Version: 1.0 (Apple Message framework v388) In-Reply-To: <20010502175850.A81681@arka.gdansk.mtl.pl> Subject: Re: useradd/adduser Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wednesday, May 2, 2001, at 08:58 AM, Andrzej Groth wrote: >>>> From what I can see it isn't possible to supply the password to pw? >>>> I'm using md5 passwords, and can easily have the script in question >>>> encode >>>> the password prior to calling pw, so is it possible to use (in the >>>> verse of >>>> pw), something along the lines of: >>>> >>>> pw useradd -n test -c "Test User" -d /home2/test -m -s sh >>>> $md5encpass >>>> >>>> ? > > so... > pw useradd -n test -c "Test User" -d /home2/test -s /bin/sh; chpass -p > $md5encpass test 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? Thanks... Brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message