Preserving uid/gid on remote machine with non-root permission

Erik Jan Tromp betageek at sympatico.ca
Fri May 27 14:45:15 GMT 2005


On Fri, 27 May 2005 16:22:52 +0200
David Hausheer <hausheer at tik.ee.ethz.ch> wrote:

> Is there a way to backup files to a remote machine on which I don't have 
> root permission, while preserving their uids/gids? I know that only the 
> super-user can set the owner and group of a file, so what I am actually 
> looking for is a tool that would store the actual uids/gids of all files 
> that are backuped by rsync in a kind of meta-file. This file could then 
> be used to restore the files with their original owner- and group 
> membership.

Depending on the degree of complexity you're willing to play with, 2 projects come immediately to mind (there may be others, dunno):

http://freshmeat.net/projects/fakeroot/
http://freshmeat.net/projects/pretendroot/

Determining suitability is left as an exercise for the student.

Erik

-- 
"I really want a license to do just two things: make the code available
to others, and make sure that improvements stay that way. That's really
it. Nothing more, nothing less. Everything else is fluff."
 -- Linus Torvalds



More information about the rsync mailing list