sharing database - licensing issue or file permissions issue



  • 2 pc’s (macbook + mac mini)
  • on the macbook 2 user accounts: my spouse + myself
  • on the mini 1 account, only myself
  • both machines have DTPO installed, with my license which is purchased by our own private company (organization)

Here’s what I want to do:

  • on a local NAS we have a local.SyncStore
  • on both mac’s I want to sync 1 database that lives in the SyncStore

On the macbook, logged in as my spouse, I can not access the DB in the SyncStore.
When I log in as myself, I can.

Is this related to user / group permissions on the NAS?
Or is this related to licensing of DTPO?

Here’s a screenshot of the rights logged in to the NAS:

DS2> pwd
DS2> ls -la
d---------    7 root     root          4096 Apr 14 01:10 .
drwxr-xr-x   21 root     root          4096 Apr 14 06:55 ..
-rw-r--r--    1 erwin    users         8196 Apr 11 07:34 .DS_Store
drwxr-sr-x    3 erwin    users         4096 Mar 22 14:02 2014.dtBase2
drwxrwxrwx    2 root     users         4096 Mar 25 14:40 @eaDir
drwxr-sr-x    5 erwin    users         4096 Apr 14 01:10 DS2.dtSyncStore
drwxr-sr-x    5 erwin    users         4096 Mar 22 14:02 E8500.dtBase2
drwxr-sr-x    3 erwin    users         4096 Mar 22 14:02 test_syno_ds2.dtBase2

And here’s a screenshot of the permission setting on the NAS:


It’s actually a single user license but…

…this doesn’t cause the issues.

Is the NAS mounted via AFP/SMB etc. or do you use WebDAV to access the NAS?

Is anything logged to Windows > Log?

  • No webdav, I think only cifs, but now you mention it, I recently had smb/cifs problems after a NAS synology DSM upgrade. (I have 2 nas boxes, different version of DSM, I’ll run the same test on the 2nd nas this week-end.

  • The day after: I do get log messages concerning permissions:

11:42:35 PM: Sync: Library -> DS2 (Local Sync Store)	You don’t have permission to save the file “35DC8389-7E18-446A-AE78-97C3FF59A5CC.lockfile” in the folder “DS2.dtSyncStore”. (The operation couldn’t be completed. Permission denied)

and, after setting permissions to rwxrwxrwx I keep getting a sync error:

10:42:40 PM: Sync: Collection Inbox -> DS2 (Local Sync Store)	The remote database is in use by another client.  Please try again later.

10:47:25 PM: Sync: Collection Inbox -> DS2 (Local Sync Store)	The file “1460666402.473249” couldn’t be opened because you don’t have permission to view it. (The file “1460666402.473249” couldn’t be opened because you don’t have permission to view it. (The operation couldn’t be completed. Permission denied))

=> if I open terminal, I can touch a file (as user christine) so these permissions are ok?

erwin-MAC:DT christine$ ls -la
total 0
drwx------@ 1 christine  staff    264 Apr 14 22:32 .
drwxrwxrwt@ 5 root       admin    170 Apr 14 18:19 ..
srw-r--r--@ 1 christine  staff  12288 Apr 11 07:34 .DS_Store
srwxr-xr-x  1 christine  staff      0 Mar 22 14:02 2014.dtBase2
drwxr-xr-x  1 christine  staff    264 Apr 14 21:40 DS2.dtSyncStore
drwxr-xr-x  1 christine  staff    466 Mar 22 14:02 E8500.dtBase2
-rw-r--r--  1 christine  staff      0 Apr 14 22:32 test.txt
drwxr-xr-x  1 christine  staff    398 Mar 22 14:02 test_syno_ds2.dtBase2
erwin-MAC:DT christine$ nano test
erwin-MAC:DT christine$ cat test
this is a test file 14/04/2016
erwin-MAC:DT christine$ pwd
erwin-MAC:DT christine$

You have to ensure that not only the *.dtSyncStore package but also all of its contents have the necessary read/write permissions:

  1. Quit DEVONthink
  2. Select the *.dtSyncStore package in the Finder and remove the .dtSyncStore extension. The package will be a folder afterwards.
  3. Open the Finder’s Info panel for the package folder.
  4. Change the permissions (e.g. read/write for you/christine or everyone)
  5. Click the small lock icon in the lower right corner of the Info panel if necessary
  6. Choose “Apply to enclosed items…” in the action menu at the bottom of the Info panel
  7. Add the .dtSyncStore extension again.

WebDAV would probably avoid these issues. Another advantage would be that it’s not necessary to mount the volumes.

Hi Christian,

Thanks for hopping in, and also thank you for the excellent webdav tip.
I have enabled webdav on the Synology box and all is working well now.

Thanks also for the tip on working with the embedded items in a .dtSyncStore.
Seeing it like this makes it obvious that permissions should be set recursively.