[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Correcting permissions on files



Hi,

On Fri, Nov 01, 2002 at 03:26:14PM +0100, Maarten Vink wrote:

> Scott St. John wrote:
> 
> >I am using ncftp to bring the user home directories over to the new server
> >and need to fix the owner/permission on each home directory and then
> >also do the same when I bring their email over.
> 
> 1) Don't use ftp; mount the drive via NFS. This won't cause permission 
> problems.
> 2) If you need to use FTP, create a big tar(.gz/.bz2) file and copy that 
> file. This will also allow you to preserve permissions. If you don't 
> have enough diskspace to create this file, pipe it through an ssh-tunnel 
> so you won't need any additional diskspace.

Or tar + plain rsh, no need to encrypt all that with ssh. Takes ages.

newmachine:/# rsh oldmachine tar cf - home | tar xpf -

and the whole tree will be copied, permissions and all, even remapping
uids if the usernames on the new machine use different ones. 

You do have to configure your old machine temporarily to trust
newmachine enough to give people on it root access though, but that's
all.

Cheers,


Emile.

-- 
E-Advies / Emile van Bergen   |   emile@e-advies.info
tel. +31 (0)70 3906153        |   http://www.e-advies.info

Attachment: pgpalOqKqCJC3.pgp
Description: PGP signature


Reply to: