From owner-freebsd-questions@FreeBSD.ORG Wed Jul 23 13:02:10 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6AC32BC for ; Wed, 23 Jul 2014 13:02:10 +0000 (UTC) Received: from baobab.bilink.net (baobab.bilink.net [212.45.144.44]) by mx1.freebsd.org (Postfix) with ESMTP id 20D562899 for ; Wed, 23 Jul 2014 13:02:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by baobab.bilink.it (Postfix) with ESMTP id 3hJGzN0vwzzCy1m for ; Wed, 23 Jul 2014 15:02:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at mcs.it Received: from baobab.bilink.net ([127.0.0.1]) by localhost (baobab.mcs.it [127.0.0.1]) (amavisd-new, port 11027) with ESMTP id KUBe75C0s8H7 for ; Wed, 23 Jul 2014 15:02:08 +0200 (CEST) Received: from hermes.mcs.it (hermes.mcs.it [192.168.132.21]) by baobab.bilink.it (Postfix) with ESMTP id 3hJGzM6yrTzCy1l for ; Wed, 23 Jul 2014 15:02:07 +0200 (CEST) Received: from mordeus (unknown [192.168.44.6]) by hermes.mcs.it (Postfix) with ESMTP id DB2391B7582 for ; Wed, 23 Jul 2014 15:02:07 +0200 (CEST) Date: Wed, 23 Jul 2014 15:01:57 +0200 From: Luciano Mannucci To: freebsd-questions@freebsd.org Subject: Re: Migrating users from Linux In-Reply-To: <20140722163740.157c7156@gumby.homeunix.com> References: <20140722160329.24aff9e6@mordeus> <53CE75BE.30407@inti.gob.ar> <20140722163740.157c7156@gumby.homeunix.com> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) X-Face: 4qPv4GNcD; h<7Q/sK>+GqF4=CR@KmnPkSmwd+#%\F`4yjKO3"C]p'z=(oWRnsYBQGM\5g:4skqQY0NnV'dM:Mm:^/_+I@a"; [-s=ogufdF"9ggQ'=y MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2014 13:02:10 -0000 On Tue, 22 Jul 2014 16:37:40 +0100 RW wrote: > > I think that if you respect the fields order and values for > > master.password, the hash will work fine. > > See "man 5 master.password", and if you need to add another algorithm > > see "man 3 crytp" to understand in witch algorithm you have hashed the > > old passwords (for example, if the hash begins with $1$ is in MD5) > > I very much doubt that. FreeBSDs MD5 is a complicated iterative hash > not just MD5. Even where Linux uses the same algorithm for a hash, > there's no standard for the number of interations. Well, actually I have to say that no, MD5 works "as is" if taken from a linux shadow password file, while blowfish doesn't (at least the "y" version). I have'nt tested DES yet. Cheers, Luciano. -- /"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/