Date: Mon, 27 Dec 1999 11:04:39 +0100 From: Gianmarco Giovannelli <gmarco@scotty.masternet.it> To: "Thuan An ( NDK )" <thuanan@nankai-densetsu.co.jp>, <questions@FreeBSD.ORG> Subject: Re: Free BSD help Message-ID: <4.2.0.58.19991227104630.00a2bf00@194.184.65.4> In-Reply-To: <01ad01bf5038$f7e78880$0e05a8c0@nankaidensetsu>
next in thread | previous in thread | raw e-mail | index | archive | help
At 27/12/99, Thuan An ( NDK ) wrote: >I need to convert the mailling system form WinNT server using Netscape to >Free BDS system using sendmail. Another request is converting the mailling >system form Turbo Linux to Free BDS system. The mailling system have to >reserve all account and data when changing from this system to other system. The conversion from Linux to FreeBSD is quite simple... As I asked a few hours ago in this list you have to impor 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 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... Check /etc/group of the Linux system and apply the users group to the FreeBSD group file. ADD ONLY the users group(s), not the system ones. When you have finished this step look at the /etc/aliases in the linux system and copy the custom ones (the one pertinents to the users only) to FreeBSD aliases file (in /etc too), then do a: newaliases The last step is to copy all the old mail which is in the Linux system (but I don't know where it is) on the /var/mail/ in the FreeBSD box. I used this little perl scripts to assign the user:group to the files. Run it from FreeBSD /var/mail/ after you have copied the mailbox from the linux system. ----> cut here <--- #!/usr/bin/perl foreach $file (<*>) { ($uid)=(getpwnam($file))[2]; ($grp)=(getpwnam($file))[3]; chown($uid,$grp,$file); }; ---> end <---- Good luck... Best Regards, Gianmarco Giovannelli , "Unix expert since yesterday" http://www.giovannelli.it/~gmarco http://www2.masternet.it 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?4.2.0.58.19991227104630.00a2bf00>