From owner-freebsd-questions@FreeBSD.ORG Sun Jan 24 07:35:22 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57DBD106566B for ; Sun, 24 Jan 2010 07:35:22 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from zoom.lafn.org (zoom.lafn.org [206.117.18.8]) by mx1.freebsd.org (Postfix) with ESMTP id 35FB38FC12 for ; Sun, 24 Jan 2010 07:35:21 +0000 (UTC) Received: from [10.0.1.4] (pool-71-109-144-133.lsanca.dsl-w.verizon.net [71.109.144.133]) (authenticated bits=0) by zoom.lafn.org (8.14.3/8.14.2) with ESMTP id o0O7ZKdt099779 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 23 Jan 2010 23:35:21 -0800 (PST) (envelope-from bc979@lafn.org) References: <20100122111219.A31898@starfire.mn.org> <20100123161934.GA27277@gizmo.acns.msu.edu> <20100123110827.A54749@starfire.mn.org> <201001241055.17552.oceanare@pacific.net.sg> <20100124004211.B64294@starfire.mn.org> In-Reply-To: <20100124004211.B64294@starfire.mn.org> Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii Message-Id: <97F6366F-5364-4990-A794-047F3E5B2FB1@lafn.org> Content-Transfer-Encoding: quoted-printable From: Doug Hardie Date: Sat, 23 Jan 2010 23:35:20 -0800 To: John X-Mailer: Apple Mail (2.1077) X-Virus-Scanned: clamav-milter 0.95.3 at zoom.lafn.org X-Virus-Status: Clean Cc: freebsd-questions - Subject: Re: Migration planning - old system to new X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2010 07:35:22 -0000 On 23 January 2010, at 22:42, John wrote: > On Sun, Jan 24, 2010 at 10:55:14AM +0800, Erich Dollansky wrote: >> Hi, >>=20 >> On 24 January 2010 am 01:08:27 John wrote: >>> doing this on a new machine! And I don't need any "migration" >>> storage, because, well, gosh - it's tcp, people! ;) I just >>> did the first transfer of home, and it went swell: >>>=20 >> how did you handle the strange group IDs? >=20 > Have not done that yet. My current best plan (which I'm not really > crazy about, but haven't come up with anything better) is to do > 121 "find /home -uid ... -exec chown {} +" and 37 > "find /home -gid ... -exec chgrp {} +" commands. This is also called > "Let's modify every inode in the filesystem. Twice." Oh, well, the > ctimes are blown up by the migration anyway (as they really should = be). > I have to be careful, if there are any IDs that are used on both > systems, but with different associations, to do the change in=20 > the right order (sigh). I could try to get really fancy and just > find the distinct combinations of "uid:gid" and do only one > "chown uid:gid" for each file, but, getting it done will be more > important than being pretty at some point. You might check out tar. At one time it had the option to use user and = group names and not ids. Hence the ids could change between the 2 = systems. It seems like it was on FreeBSD 3 or 4 that I last did that. I just tried it with FreeBSD 7.2 creating a tar file. Digging through = the file it shows the ascii names for owner and group - not uid/gid. I = un-tar'd it on a Mac and sure enough it used the names and the uids are = quite different for the two systems.=