X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.5 required=5.0 tests=AWL,BAYES_50,TW_LR X-Spam-Check-By: sourceware.org From: "Saxon, Will" To: "cygwin AT cygwin DOT com" Date: Thu, 16 Sep 2010 12:40:10 -0400 Subject: Question about cygwin + rsync and file permissions Message-ID: <4CA9EFBC87EEBF4189426E215F5DB7A8F043A47C@NAMAIL02.gs.adinternal.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 Hello, I am trying to copy files from a Linux machine to Windows using rsync. I am= using rsync 3.0.7 and cygwin 1.7.5. The source files on the linux machine are all owned by root:root with mode = 0755. When I copy them with the following command: rsync -clrtv --chmod=3Dugo=3DrwX rsync://@linux/path/to/files /cygdr= ive/d/path/to/destination I get the files, but the user who performs the copy ends up with strange pe= rmissions on them. There are two 'special' permissions entries, one with a = list of denied permissions and the other with a list of permitted ones. Denied permissions: Traverse Folder / Execute File List Folder / Read Data Read Extended Attributes Create Files / Write Data Create Folders / Append Data Write Extended Attributes Allowed permissions: Read Attributes Write Attributes Delete Read Permissions Write Permissions Take Ownership The result is that I can delete the files and change their permissions, but= I can't actually read them. I am confused about this because I think the -= -chmod=3Dugo=3DrwX clause should leave the files readable.=20 What am I doing wrong?=20 Thanks, -Will -- Will Saxon Alachua R&D Systems Administrator Sage Healthcare Division=20 13545 Progress BLVD Alachua, FL 32615 Tel: 386.418.7341 Fax: 813.207.9753 William DOT Saxon AT sage DOT com www.sagehealth.com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple