Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2001 17:07:56 -0500
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Matthew Emmerton" <matt@gsicomp.on.ca>, "Peter Chiu" <pccb@yahoo.com>, <freebsd-stable@FreeBSD.ORG>
Subject:   Re: adduser not using md5 password format
Message-ID:  <014301c1707d$7a7eae70$1200a8c0@gsicomp.on.ca>
References:  <063187618.20011118160024@yahoo.com> <013701c1707a$b4d40780$1200a8c0@gsicomp.on.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?014301c1707d$7a7eae70$1200a8c0>