Question about cygwin + rsync and file permissions

Saxon, Will
Thu Sep 16 19:06:00 GMT 2010


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=ugo=rwX rsync://<user>@linux/path/to/files /cygdrive/d/path/to/destination

I get the files, but the user who performs the copy ends up with strange permissions 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
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=ugo=rwX clause should leave the files readable. 

What am I doing wrong? 



Will Saxon
Alachua R&D Systems Administrator
Healthcare Division 
13545 Progress BLVD
Alachua, FL 32615
Tel: 386.418.7341
Fax:   813.207.9753

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list