From owner-freebsd-isp Wed Oct 4 10:29:15 2000 Delivered-To: freebsd-isp@freebsd.org Received: from mail-secure.toplink.net (mail-secure.toplink.net [195.2.171.5]) by hub.freebsd.org (Postfix) with ESMTP id 3925737B503 for ; Wed, 4 Oct 2000 10:29:11 -0700 (PDT) Received: from localhost.toplink.net (mail-scan.toplink.net [195.2.171.141]) by mail-secure.toplink.net (8.9.3/8.9.3) with ESMTP id TAA09425; Wed, 4 Oct 2000 19:29:10 +0200 (CEST) Received: from mail-secure.toplink.net (mail-scan [127.0.0.1]) by localhost.toplink.net (8.9.3/8.9.3) with ESMTP id TAA03335; Wed, 4 Oct 2000 19:06:52 +0200 Received: from babylon.toplink.net (babylon.toplink.net [195.2.171.90]) by mail-secure.toplink.net (8.9.3/8.9.3) with ESMTP id TAA09421; Wed, 4 Oct 2000 19:29:08 +0200 (CEST) Received: from localhost (ck@localhost) by babylon.toplink.net (8.9.3/8.9.3) with ESMTP id TAA42600; Wed, 4 Oct 2000 19:29:08 +0200 (CEST) Date: Wed, 4 Oct 2000 19:29:08 +0200 (CEST) From: Christian Kratzer To: Presence Cc: InvictaNet Customer Support , Freebsd-ISP Subject: Re: move home dirs In-Reply-To: Message-ID: X-NCC-RegID: de.toplink X-Spammer-Kill-Ratio: 75% X-Jihad: Will hunt down all cases of Spam and Net abuse. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, On Tue, 3 Oct 2000, Presence wrote: > > Funny thing, I just did this last night, moving all the users and > directories from an old 3.5 server to the new 4.1 box. I used NFS to > mount the two servers together for a short while and ran on the new > server: > > (cd /mnt/old/usr/home/ ; tar -cvlf - .)|(cd /usr/home/; tar xpf -) > > It moved everything across perfectly, including .dot files and > permissions. I did the same thing for the /var/mail directory and > /var/log/httpd/ directories while I was at it. I usually use tar over a ssh connection to accomplish similar stuff something on the lines of (ssh -l root OLDSERVER tar -C /usr/home cf - . )|(cd /usr/home/; tar xpf -) Runs significantly faster than the respective scp command. > Also, if you have a problem where user id's aren't being mapped to > usernames like I did, try running vipw, make a single change somewhere, > then save. It seemed to force everything to align up nicely. you propably just copied the master.passwd over from one server to another without updating the pwd.db and spwd.db files which are the ones that are really being used. pwd_mkdb -p master.passwd.new would be your friend here to get the master.passwd installed corretly. Greetings Christian Kratzer Toplink -- TopLink Internet Services GmbH ck@171.2.195.in-addr.arpa Christian Kratzer http://www.toplink.net/ Phone: +49 7032 2701-0 Fax: +49 7032 2701-19 FreeBSD spoken here! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message