11/05/2009

Unison fails to set permissions

Unison persistently refused to synchronise new files not present on one of the machines claiming:
"Failed to set permissions of file …" (different user names and IDs, by the way).
The solution (found here) is to disable owner and permission setting in the corresponding ~/.unison/<theproject>.prf file. Add the lines
owner=false
perms=0
and you should be fine.
Update (12/2014): I ran into a permissions problem again after installing a fresh 14.10 Kubuntu while keeping my old home partition (at least I think that's what changed between Unison runs ;) ).
This time it was "Error in setting permissions". This bug discussion recommended adding a
dontchmod=true
line to the .prf file (in addition to the options listed above), which solved  my issue.

6 comments:

  1. Worked like a treat :)
    Thank you!!

    ReplyDelete
  2. Solved it for me too,
    Thanks a lot!!

    ReplyDelete
  3. Great - thanks :-)
    I was using it through the Unison GUI and found I needed to restart Unison for the changes to take effect.

    ReplyDelete
  4. Thank you very much!

    ReplyDelete
  5. Good job, είσαι ωραίος!

    ReplyDelete
  6. Hey, 2016 and it works :)

    ReplyDelete