Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 May 2001 15:59:50 +0100
From:      Lee Smallbone <lee@kechara.net>
To:        freebsd-security@freebsd.org
Subject:   Re: useradd/adduser 
Message-ID:  <200105021613.RAA25130@mailgate.kechara.net>

next in thread | raw e-mail | index | archive | help
I see what you mean about the synopsis...!

 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

?

 Thanks for your help thus far..!

02/05/2001 19:13:19, Sheldon Hearn <sheldonh@uunet.co.za> wrote:

>
>On Wed, 02 May 2001 15:12:01 +0100, Lee Smallbone wrote:
>
>>  Is there any way to use adduser in a non-interative state (run from
>>  scripts)?
>
>Yes, with the pw(8) command.  If your scripts gain knowledge of the
>passwords for accounts somewhere, you can feed the passwords to pw(8)
>using its -h option.
>
>Don't be daunted by the manual page.  It's pretty easy going once you've
>gotten past the synopsis. :-)
>
>Ciao,
>Sheldon.
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-security" in the body of the message
>

--

Lee Smallbone
Kechara Internet

lee@kechara.net
www.kechara.net 

Tel: (01243) 869 969
Fax: (01243) 866 685



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?200105021613.RAA25130>