From owner-freebsd-stable Sun Nov 18 13:48:11 2001 Delivered-To: freebsd-stable@freebsd.org Received: from tomts19-srv.bellnexxia.net (tomts19.bellnexxia.net [209.226.175.73]) by hub.freebsd.org (Postfix) with ESMTP id 76A3037B416 for ; Sun, 18 Nov 2001 13:48:08 -0800 (PST) Received: from xena.gsicomp.on.ca ([199.243.144.157]) by tomts19-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011118214807.BIKB10804.tomts19-srv.bellnexxia.net@xena.gsicomp.on.ca>; Sun, 18 Nov 2001 16:48:07 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.1) with SMTP id fAILdsW28185; Sun, 18 Nov 2001 16:39:54 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <013701c1707a$b4d40780$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Peter Chiu" , References: <063187618.20011118160024@yahoo.com> Subject: Re: adduser not using md5 password format Date: Sun, 18 Nov 2001 16:48:03 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I am running stable branch cvsupped Mon Oct 22 02:53:56 EDT 2001. > > I added a user and noticed that it is not using the md5 password > format. The adduser perl script uses Perl's crypt() function, which is implemented via crypt(3). Since the salt that is provided to the crypt() call doesn't explicitly specify which algorithm to use (man crypt(3) for details), the crypt() function call defaults to DES. If you use passwd() to change the user's password after creating the account, the new password will be md5, or whatever you've specified in /etc/login.conf. Could you open a PR for this bug? adduser should use the password format in /etc/login.conf. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message