rsync, write protected read-only dest directory, mkstemp Permission denied

Last Modified: Mon, 21 Aug 2017 19:16:49 +0000 ; Created: Thu, 17 Aug 2017 02:52:18 +0000

Doing an rsync from Ubuntu 14 to a remote rsyncd daemon (not ssh but rsync protocol).

Keep getting mkstemp Permission denied (13) errors.

I had an rsync.d with incoming chmod = F400,D500 so backed up files would be read-only.

For some transfers (smaller size) rsync is temporarily changing the dest folder permissions to allow write and make the transfer, but for other transfers (usually larger files multi-gigabytes) it would keep failing.

Looks like known design limitation causes this to occur. Skip file transfer if destination file cannot be opened for writing (6788)

My solution was to allow owner write on all files and directories to avoid the wasted transfers. incoming chmod = F600,D700 and do a chmod -R u+w over the entire rsync share to allow user write.