Re: non crypt() password problems

Darren J Moffat <[email protected]> Tue, 12 Oct 2004 10:42:00 -0700
Newsgroups gmane.comp.security.sun
Organization Sun Microsystems, Inc
Message-ID <1097602920.7007.35.camel@braveheart>
On Tue, 2004-10-12 at 04:50, Kapetanakis Giannis wrote:
> Hello,
> 
> I've changed the default algorithm to be used with password hashing
> from __unix__ to md5 in /etc/security/policy.conf.
> 
> In order to change the root password I had to reset it
> to an empty field in shadow and then run passwd to put
> the new md5 password. The default behavior is to detect the
> algorith used in the old password and apply the same in
> the new one. I don't know if this a feature or a bug.

That is the correct behaviour.

See:
http://docs.sun.com/db/doc/817-0365/6mg5vpmbf?q=CRYPT_DEFAULT&a=view


> The password is accepted by sshd and it works sweet :)
> Nevertheless /usr/sadm/bin/smpatch does not accept the md5 password.
> If I change back to the crypt() password everything is ok.

This is a known bug: 4760846

-- 
Darren J Moffat