From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 15 01:10:21 2004 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 30A9516A4CE for ; Thu, 15 Apr 2004 01:10:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1132D43D60 for ; Thu, 15 Apr 2004 01:10:21 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i3F8AKbv028218 for ; Thu, 15 Apr 2004 01:10:20 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i3F8AKoa028217; Thu, 15 Apr 2004 01:10:20 -0700 (PDT) (envelope-from gnats) Resent-Date: Thu, 15 Apr 2004 01:10:20 -0700 (PDT) Resent-Message-Id: <200404150810.i3F8AKoa028217@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, Bernard Buri Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAA2816A4CF for ; Thu, 15 Apr 2004 01:01:45 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1B6343D5A for ; Thu, 15 Apr 2004 01:01:45 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i3F81j72005796 for ; Thu, 15 Apr 2004 01:01:45 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i3F81jkj005795; Thu, 15 Apr 2004 01:01:45 -0700 (PDT) (envelope-from nobody) Message-Id: <200404150801.i3F81jkj005795@www.freebsd.org> Date: Thu, 15 Apr 2004 01:01:45 -0700 (PDT) From: Bernard Buri To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: bin/65557: passwd uses passwd_format of default login class 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, 15 Apr 2004 08:10:21 -0000 >Number: 65557 >Category: bin >Synopsis: passwd uses passwd_format of default login class >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 15 01:10:20 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Bernard Buri >Release: 5.2.1-RELEASE-p3 >Organization: ask! >Environment: FreeBSD ***hostname*** 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #6: Fri Mar 26 02:07:00 CET 2004 root@***hostname***:/usr/obj/usr/src/sys/BABYLON i386 >Description: Setting up a login class in /etc/login.conf with a different passwd_format than the default class (e.g. blf instead of md5) will work now with the adduser script. But when the user attempts to change his password via the passwd utility, this will generate an md5 password because it uses the format of the default login class. >How-To-Repeat: as root: edit /etc/login.conf: remove comments from last entry (des_users) update the database: cap_mkdb -v /etc/login.conf change your class: chpass -> Class: des_users change your password: passwd look a the encoded password: chpass you can see that the password starts with $1... (md5) >Fix: >Release-Note: >Audit-Trail: >Unformatted: