Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2012 10:04:12 -0500
From:      Mark Felder <feld@feld.me>
To:        freebsd-security@freebsd.org
Cc:        Dag-Erling =?ISO-8859-1?q?Sm=F8rgrav?= <des@des.no>
Subject:   Re: Default password hash
Message-ID:  <op.wflataye34t2sn@skeletor.feld.me>
In-Reply-To: <86r4tqotjo.fsf@ds4.des.no>
References:  <86r4tqotjo.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 08 Jun 2012 07:51:55 -0500, Dag-Erling Sm=C3=B8rgrav <des@des.no>=
 wrote:

> We still have MD5 as our default password hash, even though known-hash
> attacks against MD5 are relatively easy these days.  We've supported
> SHA256 and SHA512 for many years now, so how about making SHA512 the
> default instead of MD5, like on most Linux distributions?
>
> Index: etc/login.conf
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- etc/login.conf      (revision 236616)
> +++ etc/login.conf      (working copy)
> @@ -23,7 +23,7 @@
>  # AND SEMANTICS'' section of getcap(3) for more escape sequences).
>
>  default:\
> -       :passwd_format=3Dmd5:\
> +       :passwd_format=3Dsha512:\
>         :copyright=3D/etc/COPYRIGHT:\
>         :welcome=3D/etc/motd:\
>         :setenv=3DMAIL=3D/var/mail/$,BLOCKSIZE=3DK,FTP_PASSIVE_MODE=3DY=
ES:\
>
> DES


I strongly support this -- using either SHA-2 or Blowfish would be a =
great =20
step forward. You'll also want to change the defuault for auth.conf so =20
adduser picks it up.


#
# $FreeBSD: releng/9.0/etc/auth.conf 118103 2003-07-28 02:28:51Z rwatson =
$
#
# Configure some authentication-related defaults.  This file is being
# gradually subsumed by user class and PAM configuration.
#

# crypt_default =3D       md5 des



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.wflataye34t2sn>