Access Rights changed after sync with NextCloud and Unison

martinf

Cadet
Joined
Sep 9, 2020
Messages
8
Hello,

since installing NextCloud, I have two challenges with access rights. I really hope that this is not to simple to be posted here...

1) NextCloud Sync changes owner and access rights
================================
New files, which are synced with the NextCloud client, get a new owner and access rights on FreeNas:

rwxrwxr-x+ (755) owner group file-original
rwx------+ (700) www group file-new-syncedbynextcloudclient

ACL settings:
owner - allow - advanced - all permissions - basic - no inherit
group - allow - advanced - all permissions - basic - no inherit
everyone - allow - advanced - read,execute,sync - basic - no inherit
user "www" - allow - basic - full control - basic - inherit

Most likely it is only a small change of the ACL settings for WWW - which one?


2) Unison sync over ssh
===============
Unison writes ar* and fp* files in the directory /home/owner/.unison. Despite the fact that the user "owner" is executing the sync over ssh, the access rights to the ar* file will change after a sync:

rwxrwxr-x+ (755) owner group ar-file-original
---------+ (000) owner group ar-file-changed

ACL settings:
owner - allow - advanced - all permissions - basic - no inherit
group - allow - advanced - all permissions - basic - no inherit
everyone - allow - advanced - read,execute,sync - basic - no inherit

What do I have to change that the access rights 775 will not be changed?

BR Martin
 
Top