X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Richard Ivarson Subject: rsync between WinNT and Linux (--perms --owner --group) Date: Fri, 24 Aug 2007 21:25:38 +0200 Lines: 40 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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: 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 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/