From owner-freebsd-current@FreeBSD.ORG Sun Nov 21 19:56:28 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58B9D16A4CE for ; Sun, 21 Nov 2004 19:56:28 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id CECE143D45 for ; Sun, 21 Nov 2004 19:56:27 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id iALJuQ7W011820; Sun, 21 Nov 2004 13:56:26 -0600 (CST) (envelope-from dan) Date: Sun, 21 Nov 2004 13:56:26 -0600 From: Dan Nelson To: Wiktor Niesiobedzki Message-ID: <20041121195626.GA8805@dan.emsphone.com> References: <419CD314.80900@fer.hr> <20041118171012.GB19265@dan.emsphone.com> <20041120222325.GC17297@lb.tenfour> <20041121020745.GC94473@dan.emsphone.com> <20041121144905.GE3584@mail.evip.pl> <20041121174033.GA3019@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041121174033.GA3019@dan.emsphone.com> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: FreeBSD Current Users cc: Dick Davies Subject: Re: Replacing passwd? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2004 19:56:28 -0000 In the last episode (Nov 21), Dan Nelson said: > In the last episode (Nov 21), Wiktor Niesiobedzki said: > > I was playing with it today and removing errx function allows passwd > > to change the password, but the other problem I step on is: How to > > properly configure /etc/pam.d/passwd > > > > The configuration, which I have now is simply: > > password sufficient /usr/local/lib/pam_ldap.so > > password sufficient pam_unix.so no_warn try_first_pass nullok > > You probably don't need pam_unix in there at all, since there's no way > it'll work (no local passwd entry). I take that back; you do want it, so you can change root's password. But you need to make it "required", not sufficient. It's a quirk of how pam works, I think, but the last entry cannot be marked "sufficient". -- Dan Nelson dnelson@allantgroup.com