From owner-freebsd-questions Tue Jan 4 20: 9:56 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc3.on.home.com (ha1.rdc3.on.home.com [24.2.9.68]) by hub.freebsd.org (Postfix) with ESMTP id BE0E714FB6 for ; Tue, 4 Jan 2000 20:09:53 -0800 (PST) (envelope-from cwass99@home.com) Received: from tristan.net ([24.114.108.234]) by mail.rdc3.on.home.com (InterMail v4.01.01.02 201-229-111-106) with ESMTP id <20000105040739.KWEJ7552.mail.rdc3.on.home.com@tristan.net>; Tue, 4 Jan 2000 20:07:39 -0800 Content-Length: 2303 Message-ID: X-Mailer: XFMail 1.4.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20000105034037.23849.qmail@web1901.mail.yahoo.com> Date: Tue, 04 Jan 2000 23:06:39 -0500 (EST) From: Colin To: Nguyen Manh Tho , rmtho@dit.hcmut.edu.vn Subject: RE: Cc: FreeBSD-Questions Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 05-Jan-2000 Nguyen Manh Tho wrote: > Dear all FreeBSD experts, > > On Tue, 28 Dec 1999, when answering about converting > mailling system from Turbo Linux to Free BSD > reserving all accounts and data, Mr. Gianmarco > Giovannelli wrote: > >>As I said these are the step necessary (as I think) > to >convert a linux box >>in a FreeBSD one... > > ----> begin <---- >>The conversion from Linux to FreeBSD is quite >>simple... >>As I asked a few hours ago in this list you have to >>import the Linux passwd file in the FreeBSD format. >>Read the man on the passwd to find a script that can >>make it for you (at the end of the man): man 5 passwd >>Then after merging the passwd file you should make a >: >>vipw I can't comment on this. I don't know the Linux passwd file format, and I didn't see a script in the man page. vipw is just a vi editor specialized to play with the passwd file. > >>to make the database happy :-) > >>Beware to not overlap the first accounts on the >>FreeBSD side: >>Everything has uin under 1000 is better to leave >>unchanged... I would guess the intent here was "uid" under 1000. These are mostly the system accounts, although this includes root. > >>----> cut here <--- >>#!/usr/bin/perl >>foreach $file (<*>) >>{ >>($uid)=(getpwnam($file))[2]; >>($grp)=(getpwnam($file))[3]; >>chown($uid,$grp,$file); >>}; >>---> end <---- The above script is (I hope ;)) self-explanatory. > > If anyone know this script, please send it to me > because it's very urgent.If could, please explain for > me more clearly and step by step the procedure to > convert mailling system from Turbo Linux to Free BSD > as more detail as possible because I am not > experienced both Free BSD and Turbo Linux. In general, the mailing systems are substantially the same (unless you look at the source code ;)), so the major effort will be in transplanting the environment. I would guess (yes I have never done this ) that the mail files and configs would move mostly without change and work correctly. This, of course, assumes you plan to use the same basic mailing package on the new system that was used on the Linux system. Beyond that, hopefully someone else can point you in the right direction ;) Also, this should not be posted in hackers ;) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message