This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: rsync and file ownership


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]