From owner-freebsd-questions@FreeBSD.ORG Sun Sep 9 03:16:30 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C408316A41A for ; Sun, 9 Sep 2007 03:16:30 +0000 (UTC) (envelope-from jonny@jonny.eng.br) Received: from coe.ufrj.br (roma.coe.ufrj.br [146.164.53.65]) by mx1.freebsd.org (Postfix) with ESMTP id 69DDC13C45B for ; Sun, 9 Sep 2007 03:16:27 +0000 (UTC) (envelope-from jonny@jonny.eng.br) Received: from localhost (localhost [127.0.0.1]) by coe.ufrj.br (Postfix) with ESMTP id 19E7912540F; Sun, 9 Sep 2007 00:16:27 -0300 (BRT) X-Virus-Scanned: amavisd-new at coe.ufrj.br Received: from coe.ufrj.br ([146.164.53.65]) by localhost (roma.coe.ufrj.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lCyBUyfOm7Q6; Sun, 9 Sep 2007 00:16:20 -0300 (BRT) Received: from [201.19.220.223] (unknown [201.19.220.223]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by coe.ufrj.br (Postfix) with ESMTP id 001C0125409; Sun, 9 Sep 2007 00:16:19 -0300 (BRT) Message-ID: <46E36584.4030209@jonny.eng.br> Date: Sun, 09 Sep 2007 00:16:20 -0300 From: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Lowell Gilbert References: <46E0A950.8010502@jonny.eng.br> <44zlzxnrge.fsf@Lowell-Desk.lan> In-Reply-To: <44zlzxnrge.fsf@Lowell-Desk.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: questions@freebsd.org Subject: Re: Dumb question about DES/MD5 in /etc/master.passwd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2007 03:16:30 -0000 Lowell Gilbert wrote: > João Carlos Mendes Luís writes: > > >> This question must be really dumb, but I cannot find its answer. >> >> In a somewhat recently updated RELENG_6 FreeBSD, whenever I run the >> program /usr/bin/passwd to change an users password, it encrypts the >> password using DES. I have already configured /etc/login.conf for >> MD5, but it still goes with DES: >> >> *$ grep passwd /etc/login.conf >> :passwd_format=md5:\ >> # :passwd_format=des:\ >> $* >> >> What could I be doing wrong? >> >> If that matters, this system has been receiving system and /etc >> upgrades since Sep/2003. Maybe some old configuration has been left >> around... >> > > I'm a little too lazy to confirm if this is still the case with the > openpam libraries, but it used to be the case that the passwd_format > variable was not consulted for changing passwords on existing > accounts; the same format was always used. passwd_format would be > obeyed if there were *no* password on the account (in particular, the > first time a password was assigned). > That was not the case. An account with MD5 password was turning into DES. The answer has been given by the previous message, and it was really dumb as I supposed: I did not run cap_mkdb! :-( Jonny -- João Carlos Mendes Luís - Networking Engineer - jonny@jonny.eng.br