From owner-freebsd-questions Tue Aug 6 18:57:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA0E537B400 for ; Tue, 6 Aug 2002 18:57:54 -0700 (PDT) Received: from CPE0004761ac738-CM00109515bc65.cpe.net.cable.rogers.com (CPE0004761ac738-CM00109515bc65.cpe.net.cable.rogers.com [24.103.39.131]) by mx1.FreeBSD.org (Postfix) with SMTP id 1BACF43E42 for ; Tue, 6 Aug 2002 18:57:54 -0700 (PDT) (envelope-from shadow@cpe0004761ac738-cm00109515bc65.cpe.net.cable.rogers.com) Received: (qmail 36878 invoked by uid 1001); 7 Aug 2002 01:59:06 -0000 Date: Tue, 6 Aug 2002 21:59:06 -0400 From: Miroslav Pendev To: fred@timogen.com Cc: questions@freebsd.org Subject: Re: Write script to let the user change their password Message-ID: <20020807015906.GA34841@cybershade.us> References: <02bd01c23da9$e2f96e00$7d05a8c0@fred> <20020806213436.J86473-100000@earl-grey.cloud9.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020806213436.J86473-100000@earl-grey.cloud9.net> X-Divine-Shadow-Zone: Beware of Lexxx! X-Operating-System: FreeBSD 4.6 STABLE X-System-Uptime: 8:02PM up 10 days, 8 mins, 6 users, load averages: 0.00, 0.00, 0.00 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Aug 06, 2002 at 09:37:16PM -0400, Peter Leftwich wrote: > On Tue, 6 Aug 2002 fred@timogen.com wrote: > > Hi Greg, Sorry, I can't speak clearly my question. The real problem I encounter is I want to write a script by php or pearl to do the system call "password" to change the password for a user. > > The script can be run buy web server, then the system administration can easy management the system account. > > Thanks. > > Regards, > > Fred Zhang Hi Fred, Take a look at /usr/ports/mail/poppassd - works OK, but do not forget to block TCP port 106 with your Firewall ;-) There is a Horde module [sork] that works with poppassd - passwd! But, you need Horde (www.horde.org) on order to use it - which is not too bad - Horde - Imp - Turba is the best Web-Mail solution - I think! If you do not need the whole Horde - take a look at the PHP code of passwd, you may extract what you need for the communication with poppassd. Otherwise, Horde works perfect! Hope that helps! --Miro To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message