From owner-freebsd-stable Sun Nov 18 14: 8: 2 2001 Delivered-To: freebsd-stable@freebsd.org Received: from tomts12-srv.bellnexxia.net (tomts12.bellnexxia.net [209.226.175.56]) by hub.freebsd.org (Postfix) with ESMTP id 1C1BC37B416 for ; Sun, 18 Nov 2001 14:07:59 -0800 (PST) Received: from xena.gsicomp.on.ca ([199.243.144.157]) by tomts12-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011118220758.BARN3045.tomts12-srv.bellnexxia.net@xena.gsicomp.on.ca>; Sun, 18 Nov 2001 17:07:58 -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 fAILxjW28242; Sun, 18 Nov 2001 16:59:45 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <014301c1707d$7a7eae70$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Matthew Emmerton" , "Peter Chiu" , References: <063187618.20011118160024@yahoo.com> <013701c1707a$b4d40780$1200a8c0@gsicomp.on.ca> Subject: Re: adduser not using md5 password format Date: Sun, 18 Nov 2001 17:07:56 -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. Oops. The correct place is /etc/auth.conf in 4.4-REL and later. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message