rsync and file ownership

Bakken, Luke Luke.Bakken@getronics.com
Wed Jul 21 14:11:00 GMT 2004


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



More information about the Cygwin mailing list