Date: Fri, 3 Aug 2001 11:10:05 +0300 From: Vadim Gelesev <vadoo@gu.net> To: Holtor <holtor@yahoo.com> Cc: security@FreeBSD.ORG Subject: Re: md5? Message-ID: <20010803111005.K376@fire.gu.net> In-Reply-To: <20010802203203.70517.qmail@web11605.mail.yahoo.com>
index | next in thread | previous in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010803111005.K376>
