From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 20 09:50:22 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C79C16A4CE for ; Thu, 20 Jan 2005 09:50:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 601C243D68 for ; Thu, 20 Jan 2005 09:50:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0K9oMU7088167 for ; Thu, 20 Jan 2005 09:50:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0K9oMsT088165; Thu, 20 Jan 2005 09:50:22 GMT (envelope-from gnats) Resent-Date: Thu, 20 Jan 2005 09:50:22 GMT Resent-Message-Id: <200501200950.j0K9oMsT088165@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rob Mason Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 077E016A4CE for ; Thu, 20 Jan 2005 09:46:32 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6AF643D2D for ; Thu, 20 Jan 2005 09:46:31 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j0K9kVPY093453 for ; Thu, 20 Jan 2005 09:46:31 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j0K9kVMh093452; Thu, 20 Jan 2005 09:46:31 GMT (envelope-from nobody) Message-Id: <200501200946.j0K9kVMh093452@www.freebsd.org> Date: Thu, 20 Jan 2005 09:46:31 GMT From: Rob Mason To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/76494: passwd does not indicate a successful change - causes problems with Samba password sync X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2005 09:50:22 -0000 >Number: 76494 >Category: misc >Synopsis: passwd does not indicate a successful change - causes problems with Samba password sync >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jan 20 09:50:21 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Rob Mason >Release: 5-STABLE >Organization: >Environment: FreeBSD huygens.bsdbox 5.3-STABLE FreeBSD 5.3-STABLE #1: Fri Dec 3 17:57:39 GMT 2004 masonr@huygens.bsdbox:/usr/obj/usr/src/sys/BSDBOX i386 >Description: The passwd command on 4-STABLE output the text "passwd: done" when a password was changed. This feature is used by the Samba-3 port to indicate a successful change in the 'passwd chat' config option. 5-STABLE does not indicate that the password change is successful >How-To-Repeat: Run passwd on 4-STABLE and compare the output to passwd on 5-STABLE >Fix: Apply the following patch: *** 157,164 **** --- 157,165 ---- /* set new password */ pam_err = pam_chauthtok(pamh, 0); pam_check("pam_chauthtok"); end: + if (pam_err == PAM_SUCCESS) fprintf(stderr, "Password Changed\n"); pam_end(pamh, pam_err); exit(pam_err == PAM_SUCCESS ? 0 : 1); } >Release-Note: >Audit-Trail: >Unformatted: