Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jan 2000 23:06:39 -0500 (EST)
From:      Colin <cwass99@home.com>
To:        Nguyen Manh Tho <manhtho@yahoo.com>, rmtho@dit.hcmut.edu.vn
Cc:        FreeBSD-Questions <freebsd-questions@FreeBSD.ORG>
Subject:   RE: 
Message-ID:  <XFMail.20000104230639.cwass99@home.com>
In-Reply-To: <20000105034037.23849.qmail@web1901.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20000104230639.cwass99>