Final conversion questions

Andy Dills andy at xecu.net
Sat Feb 28 19:40:07 PST 2004


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
---



More information about the freebsd-isp mailing list