From owner-freebsd-questions Tue Nov 27 23:42:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [206.29.169.15]) by hub.freebsd.org (Postfix) with ESMTP id F2EAC37B405 for ; Tue, 27 Nov 2001 23:42:44 -0800 (PST) Received: from tedm.placo.com (nat-rtr.freebsd-corp-net-guide.com [206.29.168.154]) by mail.freebsd-corp-net-guide.com (8.11.1/8.11.1) with SMTP id fAS7gcR50274; Tue, 27 Nov 2001 23:42:39 -0800 (PST) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Ryan Thompson" , "Lee Mark Mercado" Cc: Subject: RE: passwd Date: Tue, 27 Nov 2001 23:42:38 -0800 Message-ID: <004101c177e0$40cc6040$1401a8c0@tedm.placo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: X-Mimeole: Produced By Microsoft MimeOLE V4.72.3155.0 Importance: Normal 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 >-----Original Message----- >From: owner-freebsd-questions@FreeBSD.ORG >[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Ryan Thompson >Sent: Tuesday, November 27, 2001 7:12 PM >To: Lee Mark Mercado >Cc: freebsd-questions@FreeBSD.ORG >Subject: Re: passwd > > >Lee Mark Mercado wrote to freebsd-questions@FreeBSD.ORG: > >> is there a way that a user could change their user-password >> without logging into telnet ? like: thru a form on a webpage ? >> >> any ideas will greatly help. Not all my users now about telnet and >> i was thinking that a website form for changing password might be >> easier for them. > >Sure... There are a few ways to do this. If your passwords are stored >in a UNIX passwd database (i.e., /etc/spwd.db), it's not as easy as >you might think, to change passwords over the web. If you're stuck >using the passwd database, there isn't a trivially straightforward way >to get the job done that I'm aware of. > >I have had good success, however, using the expect programming >language (from ports) in conjunction with su(1) and passwd(1), >running as a CGI script. The rest is just chat script logic that >parses the various inputs and outputs from passwd(1) in an >"interactive" way, and returns appropriate status to the user. > >If you (or others) are interested, I may be able to blow the dust off >of that script. > Another way to do this (assuming that the UNIX system is also a mailserver) is to compile and install the password-changing daemon program from Qualcom. Eudora actually has a button that talks to this and allows the user to change it's password, there's also a standalone Windows client that can do it, and there's a webform CGI that does it too using this daemon. Ted Mittelstaedt tedm@toybox.placo.com Author of: The FreeBSD Corporate Networker's Guide Book website: http://www.freebsd-corp-net-guide.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message