X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=x40Mr2mOs0PSwAwK
	wGrVJhw4MOqZ2MtrydUuR1ZJaMvv3eSXzrYDkIJAXxYlsLTGjaDke8EQBI0wzQ2R
	XBBxLqxyddlhQdCZ5tIbrvzPBqb2iXl2wrQqwzIRWuctbrWWNlVk/KZOOrNTbJF3
	zPfIIocRhRd6V/vQ4azKca7gy0E=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=gZ2gwEtMzkVZLHmScHGsm1
	ggSPU=; b=NpkbnxztoaT/hShh98bI5oby4LAC9MQvXnw0Njd/HJyi3WBwnQimzk
	e6qJmo/ZC3GFSdq39hmIT4qvK2z8ldvESxIoD7Qp4iB0QcqW3dfCbX/Kdzp9gUjq
	U/t73M0z0iqN0at0bRo5Lmox8ARZXM/ugLqDrMceWtGiYXk/wo7lI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: Yes, score=5.3 required=5.0 tests=AWL,BAYES_99,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*r:sk:postmas, H*F:D*yandex.ru
X-HELO: smtp.ht-systems.ru
Date: Thu, 10 Mar 2016 01:01:02 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <1933295197.20160310010102@yandex.ru>
To: Marc Rechte <mrechte@studelec-sa.com>, cygwin@cygwin.com
Subject: Re: RFC2307 accounts
In-Reply-To: <56E00DF7.7060406@studelec-sa.com>
References: <56DFCC21.8070506@studelec-sa.com> <56DFE973.2070406@maxrnd.com>   <56DFFE26.9080705@studelec-sa.com>  <20160309112750.GA14733@calimero.vinschen.de> <56E00DF7.7060406@studelec-sa.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Marc Rechte!

> OK, I noticed that. Now it brings me a problem using rsync on cygwin.

> On cygwin:
> $ cat /etc/rsyncd.conf
> [test]
>          path = /cygdrive/c/tmp
>          comment = zone de test
>          fake super = yes
>          read only = no

> On the Linux box:
> # ls -l /home/tunix/
> ...
> drwxr-xr-x  3 tunix root                     4096  9 mars  12:23 resto_win
> -rw-rw-r--+ 1 tunix utilisateurs_du_domaine 82882  9 mars  10:56 tmp.ps

> #  rsync -avz --acls --delete /home rsync://192.168.0.23/test
> ..
> # rsync -avz --acls --delete rsync://192.168.0.23/test/home/tunix resto_win/
> ...
> # ls -l /home/tunix/resto_win/tunix/
> ...
> drwx------ 2 1050005 1049089  4096  9 mars  12:14 resto_win
> -rw------- 1 1050005 1049089 82882  9 mars  10:56 tmp.ps

> You will notice that owner, group and ACLs  are *not* restored properly

> Am I demanding too much to cygwin ?

No, you're demanding too much of rsync, which wasn't built with sane
permission system in mind.
Use SSH or direct (cifs) copying. Then the names will match.
Your problem is that you expect Cygwin to be *NIX, but in fact, it isn't. It
is a Windows application, and it follows Windows permission model. (Which,
IMO, is saner, than POSIX one.)


-- 
With best regards,
Andrey Repin
Thursday, March 10, 2016 00:58:07

Sorry for my terrible english...


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

