Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 May 2001 10:07:18 -0700
From:      Brian Tiemann <btman@mac.com>
To:        freebsd-security@FreeBSD.ORG
Subject:   Re: useradd/adduser
Message-ID:  <200105021707.KAA06632@smtpout.mac.com>
In-Reply-To: <20010502175850.A81681@arka.gdansk.mtl.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105021707.KAA06632>