File/Folder Ownership - Cygwin/Rsync - Is it possible to get around rsync taking file ownership?

Matt McCutchen hashproduct+rsync at gmail.com
Wed Jul 25 17:46:30 GMT 2007


On 7/24/07, jhurd8025 <texasjhurd at yahoo.com> wrote:
>
> Case point: 2 Servers (both with Windows Server 2k3 & cygwin). Running ssh on
> the destination server.
>
> Problem: The rsync user will take ownership over any files copied over from
> the source server. This takes ownership away from the administrators group,
> thus disallowing inherited permissions.
>
> Is there any way around not taking ownership away from the administrators
> group and giving it to the rsync user?

If you are telling rsync to preserve ownership by passing -og or -a,
try turning ownership preservation off by removing the -og or putting
--no-o --no-g after the -a.  Also try with the environment variable
CYGWIN set to ntsec and try with it set to nontsec.  One of these
combinations is likely to do what you want.

Matt


More information about the rsync mailing list