Date: Wed, 2 May 2001 17:37:00 -0300 (ART) From: Daniel <freebsd@grunblatt.com.ar> To: Brian Tiemann <btman@mac.com> Cc: <freebsd-security@FreeBSD.ORG> Subject: Re: useradd/adduser Message-ID: <Pine.BSF.4.33.0105021735310.2634-100000@apocalypse.infonegocio.com.ar> In-Reply-To: <200105021707.KAA06632@smtpout.mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
man 3 crypt On Wed, 2 May 2001, Brian Tiemann wrote: > Date: Wed, 2 May 2001 10:07:18 -0700 > From: Brian Tiemann <btman@mac.com> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0105021735310.2634-100000>