Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
d:\Software\cygwin\bin\mintty.exe /bin/bash -l -c "ssh -tp !# !U@!@ sudo chown -R !?OWNER:GROUP?myuser:mygroup! '!&'"
I have similar case, Win->Deb.
Cannot login as www-data user, so I need to change owner for every new upload.
I there any other way to automagically change owner on new upload, except cron solution mentioned above?
Still, please consider copying the owner/rights of the original file to the temporary before deleting it.