From owner-freebsd-security Fri Aug 3 1:10:18 2001 Delivered-To: freebsd-security@freebsd.org Received: from fire.gu.net (fire.gu.net [194.93.191.149]) by hub.freebsd.org (Postfix) with ESMTP id 1514537B405 for ; Fri, 3 Aug 2001 01:10:13 -0700 (PDT) (envelope-from vadoo@fire.gu.net) Received: (from vadoo@localhost) by fire.gu.net (8.11.3/8.11.3) id f738A5237096; Fri, 3 Aug 2001 11:10:05 +0300 (EEST) (envelope-from vadoo) Date: Fri, 3 Aug 2001 11:10:05 +0300 From: Vadim Gelesev To: Holtor Cc: security@FreeBSD.ORG Subject: Re: md5? Message-ID: <20010803111005.K376@fire.gu.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010802203203.70517.qmail@web11605.mail.yahoo.com> User-Agent: Mutt/1.3.18i Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Holtor! > Hi All, > > How do I make my system use MD5 by default when > adding users? I had this in my /etc/make.conf > NODESCRYPTLINKS=true Sorry for my English.... It's quite simple! I have FreeBSD release 4.3. I've written small patch for /usr/sbin/adduser which change behaviour of password generation from des to md5. Here it is! --- /usr/sbin/adduser.orig Wed May 23 14:36:43 2001 +++ /usr/sbin/adduser Wed May 23 14:24:14 2001 @@ -791,7 +791,8 @@ $salt .= $itoa64[$rand & $#itoa64]; } warn "Salt is: $salt\n" if $verbose > 1; - + $salt = "\$1\$$salt\$"; + return $salt; } -- Vadim Gelesev VAG25-RIPE VAG1-UANIC ISP Global Ukraine To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message