Re: Final conversion questions

From: Andy Dills (andy_at_xecu.net)
Date: 02/29/04

  • Next message: Shantanoo: "Re: Final conversion questions"
    Date: Sat, 28 Feb 2004 22:40:00 -0500 (EST)
    To: "Scott St. John" <ssj@scottah.com>
    
    

    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
    ---
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    

  • Next message: Shantanoo: "Re: Final conversion questions"

    Relevant Pages

    • Re: mdadm segfaults - failed upgrade to Lenny - drops to busybox/initramfs SOLVED
      ... [Example instructions set out below for the clueless as to how to ... the two copies of the home directories I ... an untar for both tar files in separate directories followed by rsync ...
      (Debian-User)
    • Re: Final conversion questions
      ... then this command will fix them for you: ... little perl script that reads /etc/passwd and sets the permissions. ... > I plan to copy the users home directories over, ...
      (freebsd-isp)
    • Re: Remote user creation
      ... setacl.exe along with script by Richard Mueller ... > I have a need to create student accounts with home directories ... > It appears that when the home directory is created on a server it does not ... > know about the account that was just created and cannot assign the proper ...
      (microsoft.public.windows.server.scripting)
    • move home drive script question
      ... I need to move all the home directories to a new drive. ... the script works fine (well it did before I tried to clean ... But to get the home directory to map I have to touch every account. ... 'get the lenght of the path of the current name ...
      (microsoft.public.windows.server.active_directory)
    • Re: Logon Scripts
      ... > Now i assign home directories to users. ... > coding and where to place that coding. ... Place these lines into your logon script: ... Specify its name in each and every account profile in the "Logon Script" ...
      (microsoft.public.win2000.general)