afalout

Syncing shares with multiple file owners

Recommended Posts

 

Dear all,

I have reached the stage in my evaluation where it seems I cannot use Resilio for my needs. Would love to be corrected :)

I have two identical NAS boxes (Netgear, Linux) in two locations. Both are used by multiple users via Windows CIFS shares, and need multiple shares synced.

Problem is, Resilio is unable to update mtime timestamps, and this results in a cryptic "initial recheck" errors - and a bit less cryptic "Failed to write attributes"

As you probably know, on Linux (which Netgear NAS is), only the OWNER of the file can change file timestamps to anything but current time. And root user, of course. This has nothing to do with setting the files permissions - only with OWNERSHIP. As long as Resilio is running as user that does not own ALL files in a share (or is running as root) - it will therefore fail to set mtime on files it does not own.

Having all files owned by a single user is not an option; NAS is used by multiple users, which have multiple accounts, and this absolutely positively has to stay that way.

Using Docker or other solutions that mount shares - which could therefore be mounted with alternate owner id is also not an option - both because this would not sync the actual user ownership of the file, and because iNotify won't work on network mounts (and is unusably slow and has limitations on number of monitored directories when using Fuse/Docker mount methods)

Having Resilio, which is open to the Internet, run as root is not an option either - for security reasons.

AFAIK, Resilio does not have an option to ignore timestamps (as for example rsync and Syncthing do) and it seem to depend on timestamps for detecting changes (which, if correct, is the root cause of my problem it seems)

So - is there a way to use Resilio where multiple users own files, and ownership has to be synced?

Please note, that any solution that does not preserve file ownership is not an option for me. Not too concerned with timestamps, although it is certainly desirable (setting a synced file mtime to a current time would be OK)

Any advice very much appreciated.

Thanks,

Andrej

Share this post


Link to post
Share on other sites

@Gane O'dwyer

1) I did not even mention "sync (of) the files/folders permissions" in my OP. It is irrelevant for the question/problem as I do not seek to have permissions synced

2) "folders have to be with read- write permissions" - they do. It is also irrelevant for the question/problem

Thanks,

Andrej

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.