From owner-freebsd-security Wed May 2 7:57:17 2001 Delivered-To: freebsd-security@freebsd.org Received: from mailgate.kechara.net (mailgate.kechara.net [62.49.139.2]) by hub.freebsd.org (Postfix) with ESMTP id AF1C437B423 for ; Wed, 2 May 2001 07:57:12 -0700 (PDT) (envelope-from lee@kechara.net) Received: from area57 (lan-fw.kechara.net [62.49.139.3]) by mailgate.kechara.net (8.9.3/8.9.3) with SMTP id RAA25130 for ; Wed, 2 May 2001 17:13:19 +0100 Message-Id: <200105021613.RAA25130@mailgate.kechara.net> Date: Wed, 02 May 2001 15:59:50 +0100 To: freebsd-security@freebsd.org From: Lee Smallbone Subject: Re: useradd/adduser Reply-To: lee@kechara.net Organization: Kechara Internet X-Mailer: Opera 5.02 build 856a X-Priority: 3 (Normal) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 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