From owner-freebsd-isp Sun Sep 17 22:24:38 2000 Delivered-To: freebsd-isp@freebsd.org Received: from mail.actweb.net (mail.actweb.net [203.30.194.6]) by hub.freebsd.org (Postfix) with ESMTP id 89AA737B422 for ; Sun, 17 Sep 2000 22:24:32 -0700 (PDT) Received: from horoschun (ofc-2.actweb.net [203.30.194.42]) by mail.actweb.net (8.10.2/8.10.2) with SMTP id e8I5OIE56135; Mon, 18 Sep 2000 16:24:18 +1100 (EST) Message-ID: <001f01c02138$ab377f00$2ac21ecb@actweb.net> From: "Matthew Horoschun" To: , "Mike" References: <4.3.2.7.2.20000918011343.0f70d1a8@mail.mikesweb.com> Subject: Re: pw & passwords Date: Mon, 18 Sep 2000 16:21:23 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > it a password directly without it needing to prompt me for it. The closest > I can come, is the "-h fd" flag, but I'm not overly sure how to pull that > one off.. Hi Mike, Something like this will do it: $execcmd = "echo $password | pw useradd -m -n $user -c \"$fullname\" -g mygroup -s nologin -h 0"; Cheers Matthew. -- Matthew Horoschun Network Administrator ActWEB.NET Pty. Ltd. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message