I am sure I am missing something stupid. I have been running btsync to get files onto my freenas and everything has been running great thanks to Joshua in this thread. Now I was going to use it to send files to a remote computer for backup. For some reason the files are not being sent from the freenas to the target computer. I tried using another computer (windows 10) and had no issues so I know its not on the receiving end.
Suspecting a permissions issue I checked the ownership of the files within the jail and found that it sure enough is a permissions issue.
The files that have btsync as the owner send with no issue presumably because they were created within the jail. out of curiosity I changed the ownership of the files that were not working.
This resulted in btsyc sending the files with no issue. My question is how to make this system work without having to go into the jail every time I want to send files. From this point forward, i will be using the freenas as my main storage via Unix sharing on my windows pc logged in as the admin. How do I make the two users get along?
Suspecting a permissions issue I checked the ownership of the files within the jail and found that it sure enough is a permissions issue.
Code:
root@btsync_1:/ # ls -l /media/sync total 299766 drwxrwxrwx 3 btsync wheel 6 Mar 9 19:52 .sync -rw-rw-rw- 1 1001 1001 2050749 Sep 24 2011 2011-9-21 CCWBooklet.pdf -rwxr-xr-x 1 btsync 1001 43862 Jun 6 2010 CSI codes - Alphabetical.pdf -rw-r--r-- 1 btsync 1001 26166615 Jan 31 2014 D7100_EN.pdf -rw-rw-rw- 1 1001 1001 279400953 Jul 10 2016 GOPR0051.MP4
The files that have btsync as the owner send with no issue presumably because they were created within the jail. out of curiosity I changed the ownership of the files that were not working.
Code:
root@btsync_1:/ # chown -R btsync /media/sync root@btsync_1:/ # ls -l /media/sync total 299766 drwxrwxrwx 3 btsync wheel 6 Mar 9 19:52 .sync -rw-rw-rw- 1 btsync 1001 2050749 Sep 24 2011 2011-9-21 CCWBooklet.pdf -rwxr-xr-x 1 btsync 1001 43862 Jun 6 2010 CSI codes - Alphabetical.pdf -rw-r--r-- 1 btsync 1001 26166615 Jan 31 2014 D7100_EN.pdf -rw-rw-rw- 1 btsync 1001 279400953 Jul 10 2016 GOPR0051.MP4
This resulted in btsyc sending the files with no issue. My question is how to make this system work without having to go into the jail every time I want to send files. From this point forward, i will be using the freenas as my main storage via Unix sharing on my windows pc logged in as the admin. How do I make the two users get along?