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
To: cygwin@cygwin.com
From: Matthew Dwyer <matchew@paradise.net.nz>
Subject: Re: rsync and file ownership
Date: Thu, 22 Jul 2004 10:00:14 +1200
Lines: 24
Message-ID: <cdmp1f$268$1@sea.gmane.org>
References: <407DF7D68DD30440B5CEB70ED234D1CF053F65C3@excuswa100.americas.unity>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: 202-0-60-19.adsl.paradise.net.nz
User-Agent: Mozilla Thunderbird 0.5 (Windows/20040419)
In-Reply-To: <407DF7D68DD30440B5CEB70ED234D1CF053F65C3@excuswa100.americas.unity>
X-IsSubscribed: yes

Bakken, Luke wrote:
  > 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.

Thanks, I'd already read that in this group and it helped a lot! :)

The main problem remaining is just that its creating permissions that 
didn't exist on the files prior to the copy.  eg.  If I do a network 
copy (its my test environment, the real thing will be across the 
internet) the files have the same permissions as they started with.  If 
I rsync them, Admin and Everyone only get read access.  Thats what I 
need to change.  I'm running rsync over ssh from dos bat files.  Its not 
going to be interactive.  I don't think I can chown or chmod the files 
once copied (can that be done over ssh non-interactively?).

Matt.


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

