From owner-freebsd-isp Mon Sep 18 11:44:27 2000 Delivered-To: freebsd-isp@freebsd.org Received: from bart.acs.nmu.edu (bart.acs.nmu.edu [198.110.193.8]) by hub.freebsd.org (Postfix) with ESMTP id BC69837B424 for ; Mon, 18 Sep 2000 11:44:22 -0700 (PDT) Received: from eward3 (ADMPM329.NMU.EDU [198.110.207.44]) by bart.acs.nmu.edu (8.11.0/8.11.0) with SMTP id e8IIiFT04985 for ; Mon, 18 Sep 2000 14:44:20 -0400 (EDT) From: Chris Jesseman Date: Mon, 18 Sep 2000 18:45:43 GMT Message-ID: <20000918.18454343@mis.configured.host> Subject: Re: pw & passwords To: In-Reply-To: <001f01c02138$ab377f00$2ac21ecb@actweb.net> References: <4.3.2.7.2.20000918011343.0f70d1a8@mail.mikesweb.com> <001f01c02138$ab377f00$2ac21ecb@actweb.net> X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Win32) X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Can something like this be used to change users passwords? Thanks, Chris Jesseman >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 9/18/00, 2:21:23 AM, "Matthew Horoschun" wrote=20= regarding Re: pw & passwords: > > it a password directly without it needing to prompt me for it. The=20= 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 =3D "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