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

Re: Can I sudo rsync to remote



On Mi, 01 sep 10, 04:45:09, T o n g wrote:
> Hi,
> 
> My ssh environment is so set up that I can do 
> 
>  rsync files me@remote_host:/path
> 
> just fine without password whereas rsync files root@remote_host:/path 
> would fail.
> 
> Under such setting what's the easiest approach to rsync files that I 
> can't read locally and write remotely as me. 

This is not "easiest", but should work.

- as root create a tar-ball of the files and make sure it is accessible 
  by the user
- as user transfer the tar-ball
- at destination untar as root to the needed location

If these files are sensible (why are they not accessible by users?) you 
should consider also encryption/decryption steps.

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

Attachment: signature.asc
Description: Digital signature


Reply to: