From owner-freebsd-current@FreeBSD.ORG Tue Apr 15 17:47:36 2003 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 CF28A37B401 for ; Tue, 15 Apr 2003 17:47:36 -0700 (PDT) Received: from mail.yadt.co.uk (yadt.demon.co.uk [158.152.4.134]) by mx1.FreeBSD.org (Postfix) with SMTP id C858D43F75 for ; Tue, 15 Apr 2003 17:47:31 -0700 (PDT) (envelope-from davidt@yadt.co.uk) Received: (qmail 4343 invoked from network); 16 Apr 2003 00:47:30 -0000 Received: from gattaca.local.yadt.co.uk (HELO mail.gattaca.yadt.co.uk) (10.0.0.2) by xfiles.yadt.co.uk with SMTP; 16 Apr 2003 00:47:30 -0000 Received: (qmail 16250 invoked by uid 1000); 16 Apr 2003 00:47:23 -0000 Date: Wed, 16 Apr 2003 01:47:23 +0100 From: David Taylor To: freebsd-current@freebsd.org Message-ID: <20030416004723.GA8630@gattaca.yadt.co.uk> Mail-Followup-To: freebsd-current@freebsd.org References: <200304151833.45847.dusan@sah-drustvo-ms.si> <20030415212033.GD466@blossom.cjclark.org> <3E9C7907.3080605@tcoip.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E9C7907.3080605@tcoip.com.br> User-Agent: Mutt/1.4.1i Subject: Re: Fwd: passwd bug? 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: Wed, 16 Apr 2003 00:47:37 -0000 On Tue, 15 Apr 2003, Daniel C. Sobral wrote: > Crist J. Clark wrote: >> On Tue, Apr 15, 2003 at 06:33:45PM +0200, Dusan Kozic wrote: >> >>> OK, finnaly I know where the problem is.:) >>> >>> This is one FreeBSD 5 machine and I have shell access to it. >>> I can change my password to empty, but then if I want to change this >>> empty password, program passwd asks me for an Old password. And if I >>> press only on Enter button, program passwd writes on the screen sorry. >>> But all services such as ssh, telnet and ftp works fine with empty >>> password, so mine password is really empty. >>> >>> Thanks and please fix this!!! >> >> >> Can't reproduce. Can you show us the /etc/password and >> /etc/master.passwd entries for the affected user? What's the date on >> the sources this system was built from? > > Actually, I'd be more interested in /etc/pam.d/passwd. > I'm seeing the same effect on a system built from sources updated on 21 March 2003. Running passwd, and changing my password to a blank one works fine. Logging in works almost fine (it displays 'Password:' then 'Password [echo on]:' and accepts the blank password the second time), but trying to change a blank password causes pam_chauthtok to fail with 'permission denied'. My /etc/pam.d/passwd file consists of one non comment line: password required pam_unix.so no_warn try_first_pass and is identical to /usr/src/etc/pam.d/passwd. -- David Taylor davidt@yadt.co.uk "The future just ain't what it used to be"