Re: Moving to New Server.. Passwd Questions

From: Damian Gerow (damian_at_sentex.net)
Date: 12/01/03

  • Next message: Lewis Watson: "Re: Moving to New Server.. Passwd Questions"
    Date: Sun, 30 Nov 2003 23:00:29 -0500
    To: Frank Laszlo <laszlof@vonostingroup.com>
    
    

    (Quoting cleaned up.)

    Thus spake Frank Laszlo (laszlof@vonostingroup.com) [30/11/03 22:52]:
    > Lewis Watson wrote:
    >
    > >I am moving to a new server and trying to maintain user,uid, and gid info.
    > >I have the entire /etc directory tar'd and am wondering when I get to the
    > >new server what I need as far as to maintain the user info files. I am
    > >thinking passwd, master.passwd, and group. After I move these files I run
    > >pwd_mkdb - p /etc/master.passwd. Is there any need to copy spwd.db and
    > >pwd.db? If I understand it correctly these will be created/updated when I
    > >run pwd_mkdb.
    > >
    > >Also, is there a better way to sync these files from one server to
    > >another?
    >
    > You could use dd to mirror the disks. Thats assuming you want to copy
    > everything.

    Having moved, and participated in moving, a number of servers, we've always
    used dump/restore to move files over. I tried rsync once, and it works just
    fine *so long as you don't need to maintain the last access time* on the
    files you're rsync'ing.

    Depending on the partitions that need to be moved over (i.e. if /var/mail is
    mounted on its own), it can be easier to pop the old drive into the new
    system, and do a 'dump -0af - <old drive mount path> | restore -rf -' in the
    directory you want to restore into.

    In the case where you just want *some* of the files moved over, however,
    chances are rsync might be your best option. Although a 'restore -if
    <dumpfile>' would work just as well.

    Note that CVS would work as well, I just haven't ever used it for this.

    Getting back to the original question, yes. If *all* you want to maintain
    is userid<->username, groupid<->groupname mappings (and user passwords),
    then that should be all you need. But you'll also need home directories,
    and limits you've put in place, and any other custom configuration you'll
    want to copy over.

      - Damian
    _______________________________________________
    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: Lewis Watson: "Re: Moving to New Server.. Passwd Questions"

    Relevant Pages

    • Re: Migration ?
      ... Moving the Master and MSDB database, what if the old server where those ... Will a restore on the SQL ...
      (microsoft.public.sqlserver.clustering)
    • Re: Copy Database Wizard
      ... certainly use the backup and restore or detach and attach methods, ... a permission issue on my target server but I can't pin point it. ... > http://www.databasejournal.com/features/mssql/article.php/3379901 Moving ... > for SQL Server ...
      (microsoft.public.sqlserver.dts)
    • Re: How to move SQL 2000 server to new hardware
      ... > Moving system DB's ... > after a Restore ... > for SQL Server ...
      (microsoft.public.sqlserver.setup)
    • Re: Weird File Access Error
      ... When renaming or moving a file within the same partition, the contents of the file are not read, but when copying or moving to another partition, they are. ... I think it is important so I will mention again that I can change the file name with no problem, from user machine and from server. ... Check to see if they have quotas enabled on the drive of the server. ...
      (microsoft.public.windows.server.sbs)
    • Re: New Sharepoint Install and DocIT
      ... Currently we are still moving from a Novell network to Active Directory. ... a company we have not made a firm decision on moving in to Windows 2003. ... > Services product or the chargeable product SharePoint Portal Server ...
      (microsoft.public.sharepoint.windowsservices)