From owner-freebsd-isp Sun Sep 17 22:28:48 2000 Delivered-To: freebsd-isp@freebsd.org Received: from saturn.mikesweb.com (saturn.mikesweb.com [216.91.66.1]) by hub.freebsd.org (Postfix) with SMTP id A51E337B423 for ; Sun, 17 Sep 2000 22:28:45 -0700 (PDT) Received: (qmail 32768 invoked from network); 18 Sep 2000 05:28:44 -0000 Received: from delta.futuredesigns.net (HELO SUN.mikesweb.com) (@216.91.66.252) by saturn.mikesweb.com with SMTP; 18 Sep 2000 05:28:44 -0000 Message-Id: <4.3.2.7.2.20000918012706.0f712f38@mail.mikesweb.com> X-Sender: sturdee@mail.mikesweb.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 18 Sep 2000 01:27:40 -0400 To: "Matthew Horoschun" , From: Mike Subject: Re: pw & passwords In-Reply-To: <001f01c02138$ab377f00$2ac21ecb@actweb.net> References: <4.3.2.7.2.20000918011343.0f70d1a8@mail.mikesweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Matthew, Thanks! Just what I needed. =) Mike At 04:21 PM 9/18/2000 +1000, Matthew Horoschun wrote: > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message