delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/25/03:28:21

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Richard Ivarson <RiIvarson AT gmail DOT com>
Subject: Re: rsync between WinNT and Linux (--perms --owner --group)
Date: Sat, 25 Aug 2007 09:27:15 +0200
Lines: 60
Message-ID: <faoll8$b9f$1@sea.gmane.org>
References: <fanbbl$dmv$1 AT sea DOT gmane DOT org> <fanmtr$gis$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
In-Reply-To: <fanmtr$gis$1@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

René Berber wrote:
> Richard Ivarson wrote:
> [snip]
>> On the Linux PC there are the same two users and the group.
> 
> Very unlikely.  Your concept of user/group is wrong.

I meant same named user (name) and group (name).

On the WinNT side there's a user named "joseph" and on the Linux side there's 
a user named "joseph", too.
Same goes for the group.

What's wrong with this concept?

I'm aware they don't have got the same UID/GID on the different hosts, though:

> [snip]
>> Does Cygwin's rsync send the user and group names to the Linux rsync at
>> all?
> 
> No, rsync used uid / gid, the numeric user/group id, not the names, and unless
> you did something to synchronize them they are different.

Do you mean Cygwin rsync (2.6.6) oder rsync in general?
According to your paragraph :

 > Type `id` on a Cygwin terminal, those numbers is what rsync (and tar, scp,
 > etc.) record, the username could be anything and it's not used.

... I suppose you mean Cygwin, because the (Unix) rsync manual says:
http://rsync.samba.org/ftp/rsync/rsync.html
 >>
--numeric-ids
     With this option rsync will transfer numeric group and user IDs rather 
than using user and group names and mapping them at both ends.

     By default rsync will use the username and groupname to determine what 
ownership to give files. The special uid 0 and the special group 0 are never 
mapped via user/group names even if the --numeric-ids option is not specified.

     If a user or group has no name on the source system or it has no match 
on the destination system, then the numeric ID from the source system is used 
instead. See also the comments on the "use chroot" setting in the rsyncd.conf 
manpage for information on how the chroot setting affects rsync's ability to 
look up the names of the users and groups and what you can do about it.
<<

So I suppose Cygwin rsync (tar etc) always uses the UID/GID, like you say, 
and so sees "no match" on the destination system in my case... That explains 
what I am seeing.

How could I do something to synchronize the UID/GID ? Manually try to set the 
Linux UID/GID to the Windows values or vice versa? (is that possible with 
existing users?)

Thanks.

-Richard



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019