From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 13:51:08 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 A81C816A41F for ; Fri, 14 Oct 2005 13:51:08 +0000 (GMT) (envelope-from baldur@foo.is) Received: from gremlin.foo.is (gremlin.foo.is [194.105.250.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1534743D48 for ; Fri, 14 Oct 2005 13:51:07 +0000 (GMT) (envelope-from baldur@foo.is) Received: from 127.0.0.1 (localhost.foo.is [127.0.0.1]) by injector.foo.is (Postfix) with SMTP id 77B602843F; Fri, 14 Oct 2005 13:51:04 +0000 (GMT) Received: by gremlin.foo.is (Postfix, from userid 1000) id 1A78B28434; Fri, 14 Oct 2005 13:51:00 +0000 (GMT) Date: Fri, 14 Oct 2005 13:51:00 +0000 From: Baldur Gislason To: iwan@staff.usd.ac.id Message-ID: <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> <49089.202.65.114.154.1129291871.squirrel@webmail.usd.ac.id> In-Reply-To: <49089.202.65.114.154.1129291871.squirrel@webmail.usd.ac.id> User-Agent: Mutt/1.4.2.1i X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on gremlin.foo.is X-Spam-Level: X-Spam-Status: No, score=-5.9 required=6.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Sanitizer: Foo MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Cc: freebsd-hackers@freebsd.org, Jayesh Jayan 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 13:51:08 -0000 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. Baldur On Fri, Oct 14, 2005 at 12:11:11PM -0000, iwan@staff.usd.ac.id wrote: > Thanks for you all, > I will do this step. > > regards. > > > Hi, > > > > I would suggest you to try the below and make sure this > > works > > > > 1 ) Install a new freebsd server > > 2 ) create a user on your linux machine say with username > > freebsd and some > > password > > 3 ) now copy the data in your /etc/passwd file of linux > > machine to freebsd > > machine > > 4 ) Also copy the /etc/shadow file to freebsd server and > > renmae it as > > /etc/master.passwd > > 5 ) Also copy /etc/groups > > 6 ) Now try to login to freebsd machine with the new user > > created on the > > linux machine. > > > > Note : Please create a copy of the original file on > > freebsd machine before > > you change the real file > > > > If the test is successful. I suppose you can migrate from > > linux to freebsd > > with all the users and their passwords. > > > > Also while coping the file make sure that the default > > enteries are there. > > That just transfer the user details and not the system > > user details > > > > > > On 10/14/05, Jiawei Ye wrote: > >> > >> On 10/14/05, Simon Roberts wrote: > >> > Try /etc/passwd and /etc/shadow > >> > User id and basic stuff in passwd, the encrypted > >> passwords in shadow. I > >> > don't know if the encryption algorithms are compatible > >> between linux > >> > and bsd or not. > >> > > >> > hth > >> > Simon > >> Make sure you don't have >16 chars username before > >> migrating. FreeBSD > >> doesn't support really long usernames. > >> > >> Jiawei > >> -- > >> "Without the userland, the kernel is useless." > >> --inspired by The Tao of Programming > >> _______________________________________________ > >> freebsd-hackers@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > >> To unsubscribe, send any mail to > >> "freebsd-hackers-unsubscribe@freebsd.org" > >> > > > > > -- > Iwan Binanto > Divisi Support-BAPSI > Universitas Sanata Dharma Yogyakarta > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >