From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 19:50:59 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3419E16A421 for ; Fri, 14 Oct 2005 19:50:59 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: from srv-03.bs2.com.br (srv-03.bs2.com.br [200.203.183.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D35743D6E for ; Fri, 14 Oct 2005 19:50:52 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: from localhost (localhost.bs2.com.br [127.0.0.1]) by srv-03.bs2.com.br (Postfix) with ESMTP id 57DBA4ADFE for ; Fri, 14 Oct 2005 16:52:19 -0300 (BRT) Received: from [172.16.12.100] (unknown [201.10.103.209]) by srv-03.bs2.com.br (Postfix) with ESMTP id ED6474ADC8 for ; Fri, 14 Oct 2005 16:52:18 -0300 (BRT) Message-ID: <43500C4D.8060603@tirloni.org> Date: Fri, 14 Oct 2005 16:51:41 -0300 From: "Giovanni P. Tirloni" User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> <20051014031654.43563.qmail@web33403.mail.mud.yahoo.com> <49089.202.65.114.154.1129291871.squirrel@webmail.usd.ac.id> <20051014135100.GS47256@gremlin.foo.is> In-Reply-To: <20051014135100.GS47256@gremlin.foo.is> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 19:50:59 -0000 Baldur Gislason wrote: > This will not work, but I did migrate a 100 users from Linux to FreeBSD > a couple of years ago. What I did was I used an application that comes > with john the ripper called deshadow or something like that to combine > the shadow and the passwd files into a passwd file with the hashes in place. > Then I wrote a perl script to convert the linux passwd file into a BSD > compatible passwd file, and then just appended it to my master.passwd > and rebuilt the database by using vipw. > I'm sure there are applications to do this. It's funny but I migrated ~100 users too last month from Slackware 10 to FreeBSD 5.4 and I had no problem with the password hash. I created a small script to extract fields from shadow/passwd and re-added those users using pw and the -H option to supply their encrypted password. It seems to have worked fine and this whole thread just got me by surprise with the feeling that I completely forgot about password differences between Linux and FreeBSD at the time. I'm glad everything worked! -- Giovanni P. Tirloni