I have a need to copy files between servers through the web. I'm using RSYNC over ssh to do so. The problem is, I need to be able to transfer files, no matter where the files is.
I created a user rsync and : usermod -G root -a rsync to give him the right to read/write anywhere on both servers.
During the transfer, I see this error:
rsync: mkstemp "/root/.myFile.RDr2HY" failed: Permission denied (13)
I don't understand what's happening.
edit: I just found out that the destination folder didn't have the write access for the root group. How would I give 100% access to this rsync user ? If I change its uid to 0, rsync stop working.
rootaccount. Anything else will likely result in pain and confusion. – larsks Jun 23 '11 at 18:47rsyncuser to 0 then you are allowing root access. There is no difference; all permissions are granted based solely on the userid. We can't help you if you're lying to yourself. If you need rsync to have root level access, you need to run it as root. You can allow key-only root access and restrict the key usage to specific ip addresses, which should get you where you need to be. – larsks Jun 23 '11 at 19:49