Copy files with permissions across machines?

Copy files with permissions across machines?

Post by joltma » Sat, 09 Apr 2005 00:57:40



We are working on migrating our web/e-mail server from a red hat 9 box
to a mandrake 10.1 box. Is there a way we can copy files over while
keeping the permissions/owners on the files? If so, I assume the users
on the new box will have to have the same username and uid of the users
from the old box?
thanx
-joltman
 
 
 

Copy files with permissions across machines?

Post by Bit Twiste » Sat, 09 Apr 2005 01:06:05



Quote:> We are working on migrating our web/e-mail server from a red hat 9 box
> to a mandrake 10.1 box. Is there a way we can copy files over while
> keeping the permissions/owners on the files? If so, I assume the users
> on the new box will have to have the same username and uid of the users
> from the old box?

We all know what happens when we assume.

It will depend on the fact that you copied their values from RH /etc
passwd/group/shadow into those files on MD before moving files.

Do not _just copy_ those /etc files. Add to the MD files.
Also check if RH users are in system groups (example audio,...).

 
 
 

Copy files with permissions across machines?

Post by Filip Rembia?kowsk » Sat, 09 Apr 2005 08:20:58


Dnia 04/07/05 17:57, joltman napisa3:

Quote:> We are working on migrating our web/e-mail server from a red hat 9 box
> to a mandrake 10.1 box. Is there a way we can copy files over while
> keeping the permissions/owners on the files?

use rsync over ssh, eg.

--
"Would it be all right if I peeled an orange?"