I finally converted my desktop machine from Windows Vista to Lubuntu 13.04. I am having trouble getting the unison file sync program (version 2.40.65) to work on the Lubuntu machine, despite trying very hard all afternoon googling through various forums.
Here is the basic setup: Lubuntu desktop machine (DTM); Dlink Network accessed storage device (NAS), which is mounted on DTM as /mnt/nas (in fstab, cifs, defaults).
Unison works going from NAS to DTM. However if a file is created or updated on DTM, unison fails to propagate over to NAS. It creates a new file .unison.newfile.XXXX.unison.tmp with the correct size in the NAS destination directory, but unable to rename it. The exact error message is Failed: error in digesting .unison.newfile.XXXX.unison.tmp .unison.newfile.XXXX.unison.tmp: permission denied. If I run Unison under sudo, then changes from DTM do propagate over to the NAS. However, changes from the NAS side get copied to DTM as root, which causes endless trouble for m
By the way, on my old Windows Vista, I ran Unison under Cygwin without having any problem.
Your answer is greatly appreciated. Thank you.