Hello,
We are using insync-headless on a virtualized Ubuntu server, which in turn serves NFS shares to the LAN for access to specific files and folders. Everything appears to be working great except for the default permissions, and so far I am unable to figure out how to get this to work. I need insync-headless to create files with the owner nobody:nogroup and 666 permissions for the shares to work as intended.
I tried setting the insync-headless user and group to nobody:nogroup, as well as trying to use the Set-User-ID and Set-Group-ID bits, nothing seems to work so far in my tests.
$ ls -l /usr/bin | grep insync
-rwxr-xr-x 1 root root 69 Aug 14 03:10 insync-headless
$ ls -l /usr/bin | grep insync
-rwxr-sr-x 1 nobody nogroup 69 Aug 14 03:10 insync-headless
$ ls -l /usr/bin | grep insync
-rwsr-sr-x 1 nobody nogroup 69 Aug 14 03:10 insync-headless
The insync directory itself has the correct permissions as well, and I tried with and without the Set-ID bits described above:
$ ls -l /media/DataAdmin/
drwsrwsrwx 4 nobody nogroup 4096 Sep 14 11:15 insync
The behavior did change a little bit though, the before and after is below, to test we uploaded the files to Google Drive then checked the resulting permissions in the Insync folder.
$ ls -l /media/DataAdmin/insync/DataAdmin/technicians/
-rw-r--r-- 1 dataadmin_local dataadmin_local 6 Sep 21 2015 permissions 1
-rw-r--r-- 1 dataadmin_local dataadmin_local 6 Sep 21 2015 permissions 2
-rw-r--r-- 1 dataadmin_local dataadmin_local 6 Sep 21 2015 permissions 3
$ ls -l /media/DataAdmin/insync/DataAdmin/technicians/
-rw-rw-r-- 1 dataadmin_local nogroup 6 Sep 21 2015 permissions 1
-rw-rw-r-- 1 dataadmin_local nogroup 6 Sep 21 2015 permissions 2
-rw-rw-r-- 1 dataadmin_local nogroup 6 Sep 21 2015 permissions 3
I am sure I am missing something simple here, any help would greatly be appreciated!
Best Regards,
Jason
DataAdmin