From owner-freebsd-questions@FreeBSD.ORG Tue Jul 22 15:37:48 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 65871BE3 for ; Tue, 22 Jul 2014 15:37:48 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F19AD2343 for ; Tue, 22 Jul 2014 15:37:47 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id x13so8176317wgg.19 for ; Tue, 22 Jul 2014 08:37:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=tDV2yPsTFILx7L+UslPpy/s9M9f8Rw8tcIJYGa6NzY8=; b=rNvestmE69WguRt8xKW15P1H+r4K7sHuWB17eXN2D6IHry3M4oNBcsionSbzJ/ZVVs cZcrowNBZu4wkCW+plrLaR7w25AakkkQ3oSedqkgYGJXkB+EDYlf5Z14byqOHBE5TrVp CyAPO+AK/lG3AVciLgn4dD+rLoqD0W96Zqxff9VAcC3wZq548W4qFCyLyY9bW3ZRHZkF 4CWppBhTd+ME7LcYRcTLIJu21hLxDnfamG3BN6LaCTFwGJ5EJkvMbEjfoQZqa3P/XYHc UzANgcbBf42uziaCPV+L8tngCdj3gULNId7Ld2E46OzTCKuP7fHXIseRjIPtpaVgvw/A Rwfg== X-Received: by 10.180.82.199 with SMTP id k7mr16274486wiy.34.1406043464436; Tue, 22 Jul 2014 08:37:44 -0700 (PDT) Received: from gumby.homeunix.com ([94.195.197.42]) by mx.google.com with ESMTPSA id fw4sm3833480wib.19.2014.07.22.08.37.42 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 22 Jul 2014 08:37:43 -0700 (PDT) Date: Tue, 22 Jul 2014 16:37:40 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: Migrating users from Linux Message-ID: <20140722163740.157c7156@gumby.homeunix.com> In-Reply-To: <53CE75BE.30407@inti.gob.ar> References: <20140722160329.24aff9e6@mordeus> <53CE75BE.30407@inti.gob.ar> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 22 Jul 2014 15:37:48 -0000 On Tue, 22 Jul 2014 11:31:26 -0300 Juan Bernhard wrote: >=20 > El 22/07/2014 11:03 a.m., Luciano Mannucci escribi=F3: > >=20 > > Still in the process of migrating all my Linux servers to FreeBSD, > > I'm now trying to move out a couple of thousands users created in a > > twenty years timespan from a linux server. > > Of course I need to keep uid and gid, though the juicy part is... > > the passwords! I have them only in encrypted form and in different > > algorythms (DES, Blowfish, ...) and the happily coexist. Con they > > be used as they are in Freebsd? > >=20 > > Thanks a lot again, > >=20 > > luciano. > >=20 >=20 > 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.