Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Subject: RE: rsync and file ownership
Date: Wed, 21 Jul 2004 07:08:20 -0700
Message-ID: <407DF7D68DD30440B5CEB70ED234D1CF053F65C3@excuswa100.americas.unity>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
From: "Bakken, Luke" <Luke.Bakken@getronics.com>
To: <cygwin@cygwin.com>
X-OriginalArrivalTime: 21 Jul 2004 14:08:22.0185 (UTC) FILETIME=[2E748990:01C46F2C]
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i6LE8TN6028474

> On Wed, 21 Jul 2004 17:02:35 +1200, Matthew Dwyer wrote:
> > I've been struggling with rsync over ssh for a month.  I'm 
> syncing files
> > between windows boxes and I have rsync working except that 
> its setting
> > read only to the groups Administrators and Everyone.
> > 
> > Is there any way I can stop rsync or ssh setting 
> permissions/ownership
> > that wasn't already present in the originating files?  I've 
> tried rsync
> > -a... but thats not achieving what I want.
> > 
> > Matt.

What I ended up having to do is set CYGWIN=nontsec for my rsync server
and client before any transfers. If your directories are set to inherit
permissions then the permissions will be set OK based on the parent
permissions.

For example:

$ CYGWIN=nontsec rsync -rtvz server::share /c/foo

You can set that variable in your cygrunsrv setup for the rsync daemon.

Luke

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


