Hi Lace0047,
I'm not sure I have a definitive answer for you but I'll throw my thoughts out here and see if it helps.
First, I just want to confirm you are using the "Windows Services for Unix" NFS sharing function on your Windows server. If you are not, please let us know what you are using as it might affect the outcome. Do you also have any sort of mapping between Windows and Linux users or are they independent of each other?
The simplest answer may be to run chown, chmod, or chgrp after the rsync completes in order for the permissions to match the parent folder. This would be pretty straight forward if there are not other files in the destination folder.
If there are files in the destination folder that were not put there by rsync, you could work around this by creating a staging area and doing the following:
- rsync to the staging area
- chmod/chown/chgrp the files in the staging area
- mv the files from the staging area to the final destination.
Is it possible for you to post the full rsync command being used. Rsync has a ton of switches and it may just take some time to figure out which combo of switches accomplish what you are trying to do. There is even a --chmod switch on rsync but the outcome varies depending on what other switches you are using.
Thanks,
Tony