Dave freecycle_berkeley@niwas.net [unison-users]
2018-11-22 06:24:34 UTC
I have an issue with linux file/directory ownership that is allowing me to copy a file using `cp`, but not back it up via `unison`. The problem appears to be in the change of ownership for a temp file of `unison`'s. I'd like to know how to correct this.
The file is in a directory structure that looks like:
/.../A/B/C/D.txt
Ownership & permissions look like:
A is root:root, 500 (rx)
B is me:root, 500 (rx)
C is me:root, 700 (rwx)
D.txt is me:root, 600 (rw)
If I `cp D.txt` to an identically owned and permissioned file structure on my Desktop that starts at B, everything is fine. On the other hand, if I use unison to copy the directory structure, it fails on an ownership change for a ".unison.D.txt.nnnnn" file. Is there a fix?
UNISON 2.48.3 started propagating changes at 02:53:54.51 on 20 Nov 2018
[BGN] Copying B/C/D.txt from /.../A to /home/me/Desktop/ [ie to /home/me/Desktop/B/C/D.txt]
Failed: Error in setting file ownership:
Operation not permitted [chown(/home/me/Desktop/B/C/.unison.testing.txt.a14bcb4fe76cb8c262af6a50e2043619.unison.tmp)]
Failed [B/C/D.txt]: Error in setting file ownership:
Operation not permitted [chown(/home/me/Desktop/B/C/.unison.testing.txt.a14bcb4fe76cb8c262af6a50e2043619.unison.tmp)]
UNISON 2.48.3 finished propagating changes at 02:53:54.51 on 20 Nov 2018
Background: I am trying to use unison & incron to backup Keybase's online file-system, which exists at /run/user/1000/keybase/kbfs. Below that directory, I find a collection of folders are all owned by me:root. All directories are mode 500 (rx), save one (/.../kbfs/private/me) which is 700 (rwx). All files are mode 600 (rw). I want that mirrored on my desktop.
The file is in a directory structure that looks like:
/.../A/B/C/D.txt
Ownership & permissions look like:
A is root:root, 500 (rx)
B is me:root, 500 (rx)
C is me:root, 700 (rwx)
D.txt is me:root, 600 (rw)
If I `cp D.txt` to an identically owned and permissioned file structure on my Desktop that starts at B, everything is fine. On the other hand, if I use unison to copy the directory structure, it fails on an ownership change for a ".unison.D.txt.nnnnn" file. Is there a fix?
UNISON 2.48.3 started propagating changes at 02:53:54.51 on 20 Nov 2018
[BGN] Copying B/C/D.txt from /.../A to /home/me/Desktop/ [ie to /home/me/Desktop/B/C/D.txt]
Failed: Error in setting file ownership:
Operation not permitted [chown(/home/me/Desktop/B/C/.unison.testing.txt.a14bcb4fe76cb8c262af6a50e2043619.unison.tmp)]
Failed [B/C/D.txt]: Error in setting file ownership:
Operation not permitted [chown(/home/me/Desktop/B/C/.unison.testing.txt.a14bcb4fe76cb8c262af6a50e2043619.unison.tmp)]
UNISON 2.48.3 finished propagating changes at 02:53:54.51 on 20 Nov 2018
Background: I am trying to use unison & incron to backup Keybase's online file-system, which exists at /run/user/1000/keybase/kbfs. Below that directory, I find a collection of folders are all owned by me:root. All directories are mode 500 (rx), save one (/.../kbfs/private/me) which is 700 (rwx). All files are mode 600 (rw). I want that mirrored on my desktop.