delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/24/15:30:34

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Richard Ivarson <RiIvarson AT gmail DOT com>
Subject: rsync between WinNT and Linux (--perms --owner --group)
Date: Fri, 24 Aug 2007 21:25:38 +0200
Lines: 40
Message-ID: <fanbbl$dmv$1@sea.gmane.org>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi,

with pleasure I use Cygwin. Thanks a lot to all developers who make this
great package possible! It makes WinNT usable. :-)

I use a WinNT (5.x) PC with the the current Cygwin's old rsync version 2.6.6
to sync files with a Linux PC which uses the newer version 2.6.9 of rsync.
(Btw. I'm looking forward to the new Cygwin's rsync version, which Corinna
mentioned).

Back to topic: it all works very well until it comes to user/group permessions...
Say I've got two directories on the WinNT PC (source) with the following
permissions:

  - "Freedir"   (all users have got "rwx")
  - "Privatedir" (users "joseph", "mary" and group "family" have got "rwx")

On the Linux PC there are the same two users and the group. (Do upper-/
lowercase matter on the WinNT PC when it comes to syncing files with a Linux PC?)

When I start Cygwin's rsync with the --archive option, like this:
[joseph AT WinNT]> rsync --archive Freedir/ Privatedir/ joseph AT host:/Mirror/

.. both directories are being transfered OK, but whilst on the destination 
host the access permissions on "Freedir" are set rwx for all users, the 
"Privatedir" has got access permissions "rwx" just for user joseph. So 
actually it looks like the source user, group etc are being ignored?
Does Cygwin's rsync send the user and group names to the Linux rsync at all?
If it does: how would I make folder "Privatedir" to be "rwx" for joseph and
mary and have the group "family" ?


P.S. I see there's a promising option "--chmod" added to newer rsync versions
which I could use well for my purpose! Unfortunately... Cgwin's rsync version
(2.6.6) doesn't know this option, yet.

Thanks a lot.

-Richard



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019