[Pkg-shadow-devel] Bug#325910: marked as done (passwd: loops if passwords don't match on initial installation)

Debian Bug Tracking System owner at bugs.debian.org
Mon Sep 26 18:48:23 UTC 2005


Your message dated Mon, 26 Sep 2005 20:39:15 +0200
with message-id <20050926183915.GF25812 at djedefre.onera>
and subject line Closing bugs formerly fixed in experimental and now fixed in unstable
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 31 Aug 2005 18:14:44 +0000
>From tfheen at err.no Wed Aug 31 11:14:44 2005
Return-path: <tfheen at err.no>
Received: from c5100bc63.inet.catch.no (vawad.err.no) [81.0.188.99] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EAX6h-00017k-00; Wed, 31 Aug 2005 11:14:43 -0700
Received: from 150.84-48-74.nextgentel.com ([84.48.74.150] helo=thosu.err.no)
	by vawad.err.no with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24)
	(Exim 4.34)
	id 1EAX6e-0003PB-Qd
	for submit at bugs.debian.org; Wed, 31 Aug 2005 20:14:42 +0200
Received: by thosu.err.no (Postfix, from userid 1000)
	id E4B78579E7; Wed, 31 Aug 2005 20:14:21 +0200 (CEST)
To: submit at bugs.debian.org
Subject: passwd: loops if passwords don't match on initial installation
Mail-Copies-To: never
From: Tollef Fog Heen <tfheen at err.no>
Organization: Private
Date: Wed, 31 Aug 2005 20:14:21 +0200
Message-ID: <8764tm3req.fsf at thosu.err.no>
User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02


Package: passwd
Severity: grave
Justification: breaks installation

(As per discussion on #debian-women)

From:

http://svn.debian.org/wsvn/pkg-shadow/trunk/debian/passwd.config?op=file&rev=0&sc=0:

        8)

[...]

                        # Compare the two passwords, loop with message if not
                        # identical, or if empty.
                        db_get passwd/user-password
                        USER_PW="$RET"
                        db_get passwd/user-password-again
                        if [ "$COMPARE_PW" ] && [ "$USER_PW" != "$RET" ]; then
                                db_set passwd/user-password ""
                                db_set passwd/user-password-again ""
                                db_fset passwd/password-mismatch seen false
                                db_input critical passwd/password-mismatch
                                db_fset passwd/user-password seen false
                                db_fset passwd/user-password-again seen false
                                STATE=8
                                continue
                        fi
                        if [ -z "$USER_PW" ]; then
                                db_set passwd/user-password ""
                                db_set passwd/user-password-again ""
                                db_fset passwd/password-empty seen false
                                db_input critical passwd/password-empty
                                db_fset passwd/user-password seen false
                                db_fset passwd/user-password-again seen false
                                STATE=8
                                continue
                        fi

Apart from the db_input about mismatched passwords (or empty
passwords), this will cause a loop as the user is never allowed to
correct his mistake.

It's a trivial fix, just change STATE=8 to STATE=7 (or earlier) and it
goes on it's merry way and the user is prompted again.

-- 
Tollef Fog Heen                                                        ,''`.
UNIX is user friendly, it's just picky about who its friends are      : :' :
                                                                      `. `' 
                                                                        `-  

---------------------------------------
Received: (at 325910-done) by bugs.debian.org; 26 Sep 2005 18:39:49 +0000
>From bubulle at kheops.frmug.org Mon Sep 26 11:39:49 2005
Return-path: <bubulle at kheops.frmug.org>
Received: from perrier.eu.org (kheops.perrier.eu.org) [81.56.227.253] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EJxtF-0005Ko-00; Mon, 26 Sep 2005 11:39:49 -0700
Received: from localhost (localhost [127.0.0.1])
	by kheops.perrier.eu.org (Postfix) with ESMTP id 008CC4FA08;
	Mon, 26 Sep 2005 20:39:16 +0200 (CEST)
Received: from kheops.perrier.eu.org ([127.0.0.1])
	by localhost (kheops [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 17928-04; Mon, 26 Sep 2005 20:39:16 +0200 (CEST)
Received: from mykerinos.kheops.frmug.org (mykerinos.kheops.frmug.org [192.168.1.3])
	by kheops.perrier.eu.org (Postfix) with ESMTP id 0F0CE4FA06;
	Mon, 26 Sep 2005 20:39:16 +0200 (CEST)
Received: by mykerinos.kheops.frmug.org (Postfix, from userid 1000)
	id D92F940A90B; Mon, 26 Sep 2005 20:39:15 +0200 (CEST)
Date: Mon, 26 Sep 2005 20:39:15 +0200
From: Christian Perrier <bubulle at kheops.frmug.org>
To: 325910-done at bugs.debian.org, 321761-done at bugs.debian.org,
	155279-done at bugs.debian.org, 202840-done at bugs.debian.org,
	287108-done at bugs.debian.org, 321384-done at bugs.debian.org,
	91733-done at bugs.debian.org, 95213-done at bugs.debian.org,
	260636-done at bugs.debian.org, 320229-done at bugs.debian.org,
	323575-done at bugs.debian.org, 323756-done at bugs.debian.org
Subject: Closing bugs formerly fixed in experimental and now fixed in unstable
Message-ID: <20050926183915.GF25812 at djedefre.onera>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.10i
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at kheops.frmug.org
Delivered-To: 325910-done at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 10

Version: 4.0.12-2

All these bugs were already fixed in experimental and should now be
closed with the last upload of 4.0.12-2 in unstable.

-- 






More information about the Pkg-shadow-devel mailing list