Question Shared Folder Sync permissions

Currently reading
Question Shared Folder Sync permissions

10
2
NAS
DS213j, DS115j
Operating system
  1. Windows
Mobile operating system
  1. Android
Hi all,

I'm using the Shared Folder Sync feature to replicate shared folders between 2 NAS devices (shocker!).

The problem I'm having is that the permissions on the replicated folders (on the 'target' NAS) are changed or reset after each sync.
I want to be able to access / copy data from the replicated folder, but whenever I grant a user read access to the replicated folder it is removed with the next run of the sync job.
It's quite a strange problem as I can't seem to see any consistency in the permission changes - I have two folders setup this way and they differ in their 'enforced' permissions.

Is this the expected behaviour of Shared Folder Sync?
If so, what alternatives could I use to get around this?

Thanks.
 
1,106
362
NAS
DS418play, DS213j, DS3621+, DSM 7.0.4-11091
whenever I grant a user read access to the replicated folder it is removed with the next run of the sync job.

I'm not seeing this. For me all permissions carryover from the source folder. When you grant permissions to the target share, are they for the same exact user as for the source share? If user1 and user2 have permissions on the source, you cannot grant user3 immutable permissions on the target.
 
10
2
NAS
DS213j, DS115j
Operating system
  1. Windows
Mobile operating system
  1. Android
I'm not seeing this. For me all permissions carryover from the source folder. When you grant permissions to the target share, are they for the same exact user as for the source share? If user1 and user2 have permissions on the source, you cannot grant user3 immutable permissions on the target.

Thanks for taking a look!
The user I'm looking to add to the target share don't exist on the source share.

Excuse my ignorance here, but why can't this be done?
I just want the content of the folders sync'd, not the permissions.
The two NAS's are on different networks but are connected via VPN, so the existing users on both NAS's are different.
This (currently) doesn't make much sense to me. Why would I have identical users across different NAS devices?
 
1,106
362
NAS
DS418play, DS213j, DS3621+, DSM 7.0.4-11091
why can't this be done?
By default rsync uses the username and groupname to determine the ownership of files on the remote system. If that same username exists on the remote system, that user will own the remote file.

When no matching username is present on the remote system, rsync will preserve the underlying UID/GID numbers and the UID number of the username on the source is used to set the remote owner.

When you change permissions, the next rsync will refresh username and groupname, preserving ownership in the remote system.
 
10
2
NAS
DS213j, DS115j
Operating system
  1. Windows
Mobile operating system
  1. Android
By default rsync uses the username and groupname to determine the ownership of files on the remote system. If that same username exists on the remote system, that user will own the remote file.

When no matching username is present on the remote system, rsync will preserve the underlying UID/GID numbers and the UID number of the username on the source is used to set the remote owner.

When you change permissions, the next rsync will refresh username and groupname, preserving ownership in the remote system.

Thanks very much, this does explain the behaviour I've been seeing.
Creating a new group and user on both NAS's seems to have solved my problem.
 

jeyare

Subscriber
1,613
544
you have also another workaround here by NFS Share, that can help you to be faster than SMB
tested, works
you can test it for your scenario also
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top