From owner-freebsd-questions Sat Apr 11 12:40:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24965 for freebsd-questions-outgoing; Sat, 11 Apr 1998 12:40:18 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.ahnet.net (mail.ahnet.net [207.213.224.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA24952 for ; Sat, 11 Apr 1998 12:40:08 -0700 (PDT) (envelope-from webmaster@zwb.net) Received: from znet-pdcs (icg-apc-pr1-p18.apc.net [207.211.76.172]) by mail.ahnet.net (8.8.7/8.8.6) with SMTP id MAA13058 for ; Sat, 11 Apr 1998 12:32:39 -0700 (PDT) Message-Id: <3.0.5.32.19980411123616.009374e0@207.213.224.25> X-Sender: 5808.dima@207.213.224.25 X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Sat, 11 Apr 1998 12:36:16 -0700 To: freebsd-questions@FreeBSD.ORG From: Dima Dorfman 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 That won't work, because with just perl because getpass(3) prints to a tty, not stdin. I don't know what expect is, but I've tried it before with pipes. Thanks! Dima At 12:33 PM 4/11/98 -0700, you wrote: >On Sat, 11 Apr 1998, Dima Dorfman wrote: > >> Such a script would be very hard to make secure, because to change a >> password, you have to run with root's permissions. > >Actually, you could use a perl/expect combo to do this without running as >root and without hacking the passwd code. > >-- > "Tact is just not saying true things. I'll pass." > "No more frogs." > > --- Thanks! Dima Dorfman - dima@zwb.net "640k ought to be enough for anybody." - Bill Gates, 1981 - Bill Gates To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message