Date: Fri, 14 Oct 2005 16:51:41 -0300 From: "Giovanni P. Tirloni" <gpt@tirloni.org> To: freebsd-hackers@freebsd.org Subject: Re: system password's file Message-ID: <43500C4D.8060603@tirloni.org> In-Reply-To: <20051014135100.GS47256@gremlin.foo.is> References: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> <20051014031654.43563.qmail@web33403.mail.mud.yahoo.com> <c21e92e20510132025v1d59a7d7r144e406ce79f04dd@mail.gmail.com> <e8ecf3c00510132129k191a30bapfff1e22b81d46f6d@mail.gmail.com> <49089.202.65.114.154.1129291871.squirrel@webmail.usd.ac.id> <20051014135100.GS47256@gremlin.foo.is>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43500C4D.8060603>