X-Recipient: archive-cygwin AT delorie DOT 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:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=c6y cRoWCdu5dQlUGE8OdS+17dVCR8LQAb3nSD8cZjhRRur1PHNjp4PZPLVL/O96f2Fr oPtICh2O37PutL9M4GfDOTMiaIwAPoA+dSxejVkZSaqdtdjXozom0nOcAZHTVd9q kj6Cmo+AkJMs4hH9ALIhF7IXexO8t9AKb0K6/rbE= 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:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=default; bh=xhoGozVAP pk3xgCCyeImAS/ZbJ4=; b=rB0nelpX3LHkH8hu9OeLYJLAytsErLMfYvS1eRt9/ ZgEqHVd68RcyoebLaTW0ISn0Uynp32g4JcgdfI8UsOptoDTz9MbP2c1Ytb6btgIj +KtFhegFQ3nl0c6XCyXwRvMkdzAgxIKmJfQ4qHWRpYvwsZIcgQlbtmy4rh1oJCOQ LM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.1 required=5.0 tests=AWL,BAYES_40,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham version=3.3.2 X-HELO: mail1.bemta4.messagelabs.com X-Env-Sender: daniel DOT briley AT vectorcommand DOT com X-Msg-Ref: server-12.tower-21.messagelabs.com!1381422453!1040857!1 X-StarScan-Received: X-StarScan-Version: 6.9.12; banners=vectorcommand.com,-,- X-VirusChecked: Checked From: Daniel Briley To: "cygwin AT cygwin DOT com" Subject: NTFS permissions still modified by rsyncd when using noacl Date: Thu, 10 Oct 2013 16:27:32 +0000 Message-ID: <8CCD5CF3FAEE334CA73E9D84A538F391197FA67A@exch01.int.vectorcommand.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r9AGRokq022118 Hello, I am having some difficulty with Cygwin and rsync when it comes to NTFS permissions. I have a Windows server, running the latest stable build of Cygwin, with the rsync daemon configured to run as a service using cygrunsrv. I then have another Windows box, which runs rsync in client mode and synchronises up to the rsync daemon running on the first box. I would like all files that are synchronized to have the NTFS flag set to enable them to inherit permissions from their parent object, rather than rsync attempting to set the permissions itself. As per instructions elsewhere, I have mounted the destination directory with the noacl flag in /etc/fstab. I have modified /etc/rsyncd.conf to use this location. I can confirm this as the rsync will fail if the destination is unmounted. For some reason, the "inherit permissions from parent" flag is still not set on the files when written to disk my the rsync daemon. This is despite the fact I can confirm that the "noacl" trick is working in other scenarios by doing something similar to the following: touch /cygdrive/d/syncdir/test1.txt touch /syncdir/test2.txt (where /syncdir is the above directory mounted using 'noacl') If I then check the permissions using Explorer, "test1.txt" does not have the "inherit from parent" permissions flag set, and "test2.txt" does. After much research and experimentation, I am at a bit of a loss! Relevant files are as follows: ############## /etc/fstab ############### none /cygdrive cygdrive binary,posix=0,user 0 0 E:/User\040Home\040Folders /uhf ntfs noacl,posix=0 0 0 ############## /etc/fstab ############### ############## /etc/rsyncd.conf ############### [home] path=/uhf/dbriley read only=false ############## /etc/rsyncd.conf ############### The rsync command run on the client is "rsync -vr --no-p * serverhostname::home/" With or without the "--no-p" switch makes no difference. Client and server are running rsync 3.0.9 on Cygwin 1.7.25(0.270/5/3) Many thanks, Daniel Briley This email has been scanned by the Symantec.cloud Email Security (MessageLabs) service for malware. -- 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