From owner-freebsd-isp@FreeBSD.ORG Sat Feb 28 19:40:07 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 050DE16A4CE for ; Sat, 28 Feb 2004 19:40:07 -0800 (PST) Received: from mg1.xecu.net (mg1.xecu.net [216.127.136.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id C85CA43D1D for ; Sat, 28 Feb 2004 19:40:06 -0800 (PST) (envelope-from andy@xecu.net) Received: from localhost (unknown [127.0.0.1]) by mg1.xecu.net (Postfix) with ESMTP id 3DFE367F29; Sat, 28 Feb 2004 22:40:06 -0500 (EST) Received: from mg1.xecu.net ([127.0.0.1]) by localhost (mg1.xecu.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 70463-05; Sat, 28 Feb 2004 22:40:05 -0500 (EST) Received: from thunder.xecu.net (thunder.xecu.net [216.127.136.208]) by mg1.xecu.net (Postfix) with ESMTP id 8623567F13; Sat, 28 Feb 2004 22:40:05 -0500 (EST) Date: Sat, 28 Feb 2004 22:40:00 -0500 (EST) From: Andy Dills To: "Scott St. John" In-Reply-To: <20040228191105.M42305@scottah.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at xecu.net cc: freebsd-isp@freebsd.org Subject: Re: Final conversion questions X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Feb 2004 03:40:07 -0000 On Sat, 28 Feb 2004, Scott St. John wrote: > Thanks to help from this list I am proud to say that tonight I will be > moving our mail server from Linux/Sendmail to FreeBSD/Postfix! The user > passwd file has been converted and we are ready to rock, but I have a few > questions before I begin tonight. > > I plan to copy the users home directories over, does anyone have a script > that will go through the home directories and correctly set the ownership of > the directories once they are copied over? Example, user Fred has a home > dir on the old machine, I copy over the files to the BSD box, I need to > chown -R fred:users to his home directory. I could do it by hand, but I am > sure there has to be a script out there to do something similar? > > Second question, I want to make sure ALL files are copied over from the home > directories and I think I have the syntax wrong to get the files, I want > the .procmailrc files to transfer over. If the uid/gids remain the same from the other system, just make a tar of your users directory. tar cf /bigfs/users.tar /users That addresses both issues, in terms of preserving permissions and getting every file. Andy --- Andy Dills Xecunet, Inc. www.xecu.net 301-682-9972 ---