From owner-freebsd-security Wed May 2 7:14:13 2001 Delivered-To: freebsd-security@freebsd.org Received: from lists01.iafrica.com (lists01.iafrica.com [196.7.0.141]) by hub.freebsd.org (Postfix) with ESMTP id EDBE737B440 for ; Wed, 2 May 2001 07:14:08 -0700 (PDT) (envelope-from sheldonh@uunet.co.za) Received: from nwl.fw.uunet.co.za ([196.31.2.162]) by lists01.iafrica.com with esmtp (Exim 3.12 #2) id 14uxOE-0006X3-00; Wed, 02 May 2001 16:14:02 +0200 Received: (from nobody@localhost) by nwl.fw.uunet.co.za (8.8.8/8.6.9) id QAA12171; Wed, 2 May 2001 16:14:00 +0200 (SAST) Received: by nwl.fw.uunet.co.za via recvmail id 12005; Wed May 2 16:13:20 2001 Received: from sheldonh (helo=axl.fw.uunet.co.za) by axl.fw.uunet.co.za with local-esmtp (Exim 3.22 #1) id 14uxNX-0000hL-00; Wed, 02 May 2001 16:13:19 +0200 To: lee@kechara.net Cc: freebsd-security@freebsd.org Subject: Re: useradd/adduser In-reply-to: Your message of "Wed, 02 May 2001 15:12:01 +0100." <200105021525.QAA25034@mailgate.kechara.net> Date: Wed, 02 May 2001 16:13:19 +0200 Message-ID: <2686.988812799@axl.fw.uunet.co.za> From: Sheldon Hearn Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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