From owner-freebsd-security Wed May 2 10:35:23 2001 Delivered-To: freebsd-security@freebsd.org Received: from ambar.ofermundo.com.ar (h066060007247.isol.net.ar [66.60.7.247]) by hub.freebsd.org (Postfix) with ESMTP id 4AC1137B43C for ; Wed, 2 May 2001 10:35:19 -0700 (PDT) (envelope-from freebsd@grunblatt.com.ar) Received: from dialup204.icatel.net (dialup204.icatel.net [200.47.39.204]) by ambar.ofermundo.com.ar (8.9.3/8.8.7) with ESMTP id OAA08562; Wed, 2 May 2001 14:35:24 -0300 Date: Wed, 2 May 2001 17:37:00 -0300 (ART) From: Daniel X-X-Sender: To: Brian Tiemann Cc: Subject: Re: useradd/adduser In-Reply-To: <200105021707.KAA06632@smtpout.mac.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org man 3 crypt On Wed, 2 May 2001, Brian Tiemann wrote: > Date: Wed, 2 May 2001 10:07:18 -0700 > From: Brian Tiemann > To: freebsd-security@FreeBSD.ORG > Subject: Re: useradd/adduser > > > 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 > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message