X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 18 Nov 2008 11:01:08 -0800
From: David Rothenberger <daveroth@acm.org>
Subject: Re: 1.7 - noacl for cygdrive
In-reply-to: <gfumbo$kgu$1@ger.gmane.org>
To: cygwin@cygwin.com
Message-id: <492310F4.2060003@acm.org>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit
References: <BAY109-DAV5E40608D19FE2E2F03C77CF130@phx.gbl>  <gfumbo$kgu$1@ger.gmane.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17)  Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On 11/18/2008 7:18 AM, Richard Ivarson wrote:
> So it's not just me having massive problems with the NT permissions 
> which are being messed up by Cygwin tools like rsync. Actually most
> Cygwin users should see these problems, I guess, because Windows 2000
> and XP use NTFS. I can't use rsync anymore, because the permissions
> of the destination are all wrong after rsync resets them... Oh what a
> pity!

I use rsync all the time with Cygwin and don't have problems with 
permissions, because I set "nontsec" in the CYGWIN environment variable 
as necessary when I want the Windows permissions to be used.

For example, if I'm copying from a remote server to my local server, I'd 
do this:

% CYGWIN=nontsec rsync -r remote:/path .

If I'm copying to a remote Cygwin box and I want to use the default 
permissions on the remote box, I use this:

% rsync -r --rsync-path="CYGWIN=nontsec rsync" ./ remote:/path

> The "-perms" (-p) option I don't use.

Another option that can be useful is the --chmod option in rsync. I use 
this with --perms when I'm copying from a Cygwin box to a unix box. (You 
don't want to use "nontsec" if you use this.)

-- 
David Rothenberger  ----  daveroth@acm.org

Bennett's Laws of Horticulture:
         (1) Houses are for people to live in.
         (2) Gardens are for plants to live in.
         (3) There is no such thing as a houseplant.


--
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/

