Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 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" To: 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/