From owner-freebsd-questions Sun Apr 12 11:42:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA15703 for freebsd-questions-outgoing; Sun, 12 Apr 1998 11:42:14 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dove.peace.com.my (peace.com.my [202.184.153.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA15691 for ; Sun, 12 Apr 1998 11:42:08 -0700 (PDT) (envelope-from panda@peace.com.my) Received: from lovebox (love.com.my [202.184.153.17]) by dove.peace.com.my (8.8.5/8.8.5) with SMTP id CAA08539; Mon, 13 Apr 1998 02:24:51 +0800 (SGT) Date: Mon, 13 Apr 1998 02:24:51 +0800 (SGT) Message-Id: <3.0.32.19980413024705.00e8ee90@peace.com.my> X-Sender: panda@peace.com.my X-Mailer: Windows Eudora Pro Version 3.0 (32) To: leifn@image.dk (Leif Neland), freebsd-questions@FreeBSD.ORG From: chas Subject: Re: password change via the web?! Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Something like this script in pseudolanguage? > > # call script with parameters user old_password new_password > echo $2 | su - $1 > echo $2\n$3\n$3\n|passwd $1 > exit > >expect should be able to do this. indeed. passwd.cgi and passwd.html are supplied as one of the many examples in the Expect-5.25 package available from the ports collection. chas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message