[K12OSN] Copying Files

Les Mikesell les at futuresource.com
Fri Jun 23 13:45:53 UTC 2006


On Fri, 2006-06-23 at 08:00, Petre Scheie wrote:
> > If they are both on the network at once, from the old machine:
> > cd /home
> > rsync -essh -av . newmachine:/home
> > 
> The wrinkle is that since he's moving to a new machine, he probably doesn't have all the 
> user IDs & PWs setup.  If you copy the /etc/passwd, /etc/group, and /etc/shadow from the 
> old box to the new one, then all the home directories will keep their ownership correct. 
>   Otherwise, if you create, say, bob on the new machine and it ends up with UID 517, but 
> it was UID 654 on the old box, /home/bob won't be accessible by bob on the new box.

Tar and rsync will actually use the login names rather than
the numeric id's and look up the matching uid on the destination
unless you add the --numeric-id option but you are right that
it is best to make sure they are the same.

-- 
  Les Mikesell
   les at futuresource.com





More information about the K12OSN mailing list