From owner-freebsd-bugs@FreeBSD.ORG Fri Dec 10 21:00:48 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 A525216A4CF for ; Fri, 10 Dec 2004 21:00:48 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FB1643D66 for ; Fri, 10 Dec 2004 21:00:46 +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 iBAL0j47023834 for ; Fri, 10 Dec 2004 21:00:45 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBAL0jNu023828; Fri, 10 Dec 2004 21:00:45 GMT (envelope-from gnats) Resent-Date: Fri, 10 Dec 2004 21:00:45 GMT Resent-Message-Id: <200412102100.iBAL0jNu023828@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, "Mahlon E. Smith" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C209616A4CE for ; Fri, 10 Dec 2004 20:54:13 +0000 (GMT) Received: from happymaggot.stinkymeat.net (c-24-20-217-22.client.comcast.net [24.20.217.22]) by mx1.FreeBSD.org (Postfix) with SMTP id 39EDE43D64 for ; Fri, 10 Dec 2004 20:54:13 +0000 (GMT) (envelope-from mahlon@happymaggot.stinkymeat.net) Received: (qmail 35291 invoked by uid 1001); 10 Dec 2004 20:54:12 -0000 Message-Id: <20041210205412.35290.qmail@happymaggot.stinkymeat.net> Date: 10 Dec 2004 20:54:12 -0000 From: "Mahlon E. Smith" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: mahlon-dated-1110480323.6ec148@martini.nu Subject: bin/74929: DES/BLF login.conf classes not working with passwd X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Mahlon E. Smith" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2004 21:00:48 -0000 >Number: 74929 >Category: bin >Synopsis: DES/BLF login.conf classes not working with passwd >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 10 21:00:45 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Mahlon E. Smith >Release: FreeBSD 5.3-STABLE i386 >Organization: Spime Solutions Group (www.spime.net) >Environment: n/a >Description: In any 5.x release, passwd ignores the passwd_format class key in login.conf, and always generates a MD5 password. >How-To-Repeat: - enable des_users class in login.conf (for DES crypt passwords) - run cap_mkdb /etc/login.conf - edit the class field of the user(s) with vipw, changing their login class to des_users. mahlon:REMOVED:1001:1000:des_users:0:0:Mahlon E. Smith:/home/mahlon:/bin/tcsh - change the password with passwd. - check the master.passwd file. Password is MD5. ($1$...) >Fix: Because this works perfectly under 4.x, I'm assuming it's an issue with the new PAM compatibility with passwd under 5.x. To workaround for now, don't use passwd, instead use: % pw usermod [username] -h 0 >Release-Note: >Audit-Trail: >Unformatted: