From owner-freebsd-questions Mon Sep 28 02:16:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA04963 for freebsd-questions-outgoing; Mon, 28 Sep 1998 02:16:46 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns.cityip.co.za (ns.cityip.co.za [196.25.223.140]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA04849 for ; Mon, 28 Sep 1998 02:16:17 -0700 (PDT) (envelope-from wjv@cityip.co.za) Received: from wjv by ns.cityip.co.za with local (Exim 1.82 #2) id 0zNZP6-0005ka-00; Mon, 28 Sep 1998 11:15:36 +0200 Message-ID: <19980928111536.C22025@cityip.co.za> Date: Mon, 28 Sep 1998 11:15:36 +0200 From: Johann Visagie To: "Alain G. Fabry" , freebsd-questions@FreeBSD.ORG Subject: Re: Move users from one system to another. Mail-Followup-To: "Alain G. Fabry" , freebsd-questions@FreeBSD.ORG References: <053d01bde730$b6506350$5531d5c6@earth.coserve.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <053d01bde730$b6506350$5531d5c6@earth.coserve.org>; from Alain G. Fabry on Wed, Sep 23, 1998 at 03:28:23PM -0500 X-PGP: ftp://ftp.cityip.co.za/users/wjv/pubkey.asc Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 23 Sep 1998 at 15:28 SAT, Alain G. Fabry wrote: > > I have just installed a new machine running FreeBSD 2.2.7. Have an old > machine (FreeBSD 2.2.7) with 5 users and I want to transfer these users to > the new machine. > How can I go about this to make this move transparent to them? > Includes moving mailboxes, users, password, files, etc. Manually, I'm afraid. - Check that /etc/group on the new box contains the same entries as on the old one. Copy it from the old to the new if necessary. - Run vipw on the old box, and copy all the lines pertaining to the 5 users to a separate file. On the new box, run vipw and yank in these lines. That should create the users with the same UIDs and other parameters. - tar up the users' home directories and transfer them across. - Remember the mailboxes! - You might want to do a find through the entire filesystem for files belonging to these users. You can "feed" the result of this find to tar as well. - ... and I probably forgot some things as well. -- V Johann Visagie | Email: wjv@CityIP.co.za | Tel: +27 21 419-7878 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message