*BSD News Article 70893


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!vic.news.telstra.net!news.mira.net.au!inquo!nntp.uio.no!Norway.EU.net!EU.net!news.eunet.fi!sja
From: sja@tekla.fi (Sakari Jalovaara)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: password file: NetBSD -> FreeBSD
Date: 13 Jun 1996 09:38:52 GMT
Organization: Helsinki University of Technology
Lines: 17
Message-ID: <SJA.96Jun13123852@poveri.tekla.fi>
References: <4pmh3b$3te@mc3.mcnet.ch> <4pnf19$9kq@jraynard.demon.co.uk>
NNTP-Posting-Host: poveri.tekla.fi
In-reply-to: james@jraynard.demon.co.uk's message of 12 Jun 1996 22:06:33 -0000

>>I want to migrate from NetBSD to FreeBSD.
>>On NetBSD I use DES encryption and on FreeBSD I would like to use MD5.
>>
>>Is it possible to convert password file?

What could be done to assist this kind of migration (a Small Matter of
Programming):

A user types his password.  login(1) notices, "oops, the password file
has a DES password and this system is configured for MD5".  login then
checks the password against DES; if ok, it re-encrypts it with MD5 and
inserts it into the password file.  After all users have logged in once,
all passwords will have been converted.

Alternatively, login could accept the DES password and ask the user to
run passwd(1) which would insert the new password using MD5.
									++sja