www.rodneybeede.com "I would love to change the world, but they won't give me the source code" - unknown

rsync, write protected read-only dest directory, mkstemp Permission denied - Last Modified 2017-08-21 19:16 UTC - Created 2017-08-17 02:52 UTC

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.