ownership & ssh

Wayne Davison wayned at samba.org
Wed Feb 18 21:03:28 GMT 2004

On Wed, Feb 18, 2004 at 02:54:58PM -0500, Mauricio Tavares wrote:
> Now, if I move burp back to kushana [from katri], I should see burps'
> gid and uid to be noaccess and nobody4, respectively, right?

Typically, yes, but it does depend on the reverse name-mapping.  As long
as katri doesn't have its own name for those numerically-transferred IDs
OR as long as the name(s) that katri just happened to put on those ID
numbers do not match some different name on kushana, the reverse
transfer will just keep the numeric IDs as well.  It might be safer to
force this with the --numeric-ids option, though, but that depends on
how much other name-mapping you need.  The best alternative is to ensure
that both machines have all the names they need in common for the
transfer, but that is not always possible.

An example will make this clearer:

Assume that kushana has gid 500=foo and gid 501=bar while katri has only
500=bar.  If you transfer a file that is group "foo" from kushana to
katri, it will get transferred with a numeric ID of 500 because katri
does not have group "foo".  However, on the reverse transfer, the group
will be mapped as bar(500) back to bar(501), changing the group from
what it was.

> A not-so-easy rsync question:  if I want to run it over ssh, what
> about the password for ssh?

That's entirely between you and ssh.  There are host-authentication
strategies as well as authorized-key strategies for avoiding password
prompts (see the ssh-keygen manpage for details of the latter).  Get ssh
working as you would like it to first, then you can just use it with


More information about the rsync mailing list