From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 11 23:01:50 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE2A316A4CE for ; Thu, 11 Dec 2003 23:01:50 -0800 (PST) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A050543D2D for ; Thu, 11 Dec 2003 23:01:48 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from localhost (localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.9/8.12.8) with ESMTP id hBC71bE7060477; Fri, 12 Dec 2003 17:31:38 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: staf wagemakers , hackers@freebsd.org Date: Fri, 12 Dec 2003 17:31:36 +1030 User-Agent: KMail/1.5.3 References: <20031210170417.B21993@tikitechnologies.com> <20031211100520.GA3181@staflaptop.antw.the-ecorp.com> In-Reply-To: <20031211100520.GA3181@staflaptop.antw.the-ecorp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312121731.36477.doconnor@gsoft.com.au> X-Spam-Score: -4.7 () CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Subject: Re: Disillusioned with PAM X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 07:01:50 -0000 On Thursday 11 December 2003 20:35, staf wagemakers wrote: > > /usr/bin/passwd will be a real pain to use for a Web GUI as it > > requires a pty, which means extensive "coding around it" to fake one up > > for it a la poppassd. I thought PAM was going to solve this for me, > > because of the "password management" function designed in... only it > > appears so far that no PAM method which implements local password > > changing actually exists on FreeBSD. What a mess. > > CGIpaf supports FreeBSD without pam basically it runs "pwd_mkdb" to > update the password. If you need c functions to update a password the > source might be useful to you. http://staf.patat.org/cgipaf/ The 'pw' command can change passwords (among many other things) and it does not need a pty, eg.. echo newpassword | pw usermod foobar -h 0 In a CGI you would open a pipe to pw and feed it the password. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5