Hi all,
I would like to mount a remote smb share in SyncThing (Jail), but it seems not work.
I have a remote smb share (Server01, 192.168.0.1) and a TrueNAS (Server02, 192.168.0.2)
And install a SyncThing in TrueNAS Jail (192.168.0.3)
Here what i done.
Since it cannot direct mount a smb in jails, so I make a directory in TrueNAS
- /mnt/Server01
Mount smb share (Server01) in TrueNAS, not in jails
- mount_smbfs -u 983 -g 983 -d 770 -f 770 -I 192.168.0.1 //user01@Server01/folder01 /mnt/Server01
which "983" is the UID and GID of syncthing.
and "user01" have full permission right to "folder01" and subfolder
and add a Mount point in Jails
- /mnt/Server01 to /mnt/iocage/jails/SyncThing/root/mnt/Server01
Restart SyncThing
Check the user right in SyncThing console, use ls -sl, it shows
-------
total 2
1 drwxrwx---+ 3 syncthing syncthing 3 Jun 15 15:29 TrueNASStorage
2 drwxrwx--- 1 syncthing syncthing 16384 Jun 17 15:18 Server01
-------
it seems same as the original folder right.
But Syncthing cannot sync the file to Server01, it said permission denied with "syncing: rename"
It can sync file to TrueNAS folder (i.e. TrueNASStorage).
And in console, as root@SyncThing, I can create file in /mnt/Server01, but cannot remove or rename the file.
And Hints? Thanks!
I would like to mount a remote smb share in SyncThing (Jail), but it seems not work.
I have a remote smb share (Server01, 192.168.0.1) and a TrueNAS (Server02, 192.168.0.2)
And install a SyncThing in TrueNAS Jail (192.168.0.3)
Here what i done.
Since it cannot direct mount a smb in jails, so I make a directory in TrueNAS
- /mnt/Server01
Mount smb share (Server01) in TrueNAS, not in jails
- mount_smbfs -u 983 -g 983 -d 770 -f 770 -I 192.168.0.1 //user01@Server01/folder01 /mnt/Server01
which "983" is the UID and GID of syncthing.
and "user01" have full permission right to "folder01" and subfolder
and add a Mount point in Jails
- /mnt/Server01 to /mnt/iocage/jails/SyncThing/root/mnt/Server01
Restart SyncThing
Check the user right in SyncThing console, use ls -sl, it shows
-------
total 2
1 drwxrwx---+ 3 syncthing syncthing 3 Jun 15 15:29 TrueNASStorage
2 drwxrwx--- 1 syncthing syncthing 16384 Jun 17 15:18 Server01
-------
it seems same as the original folder right.
But Syncthing cannot sync the file to Server01, it said permission denied with "syncing: rename"
It can sync file to TrueNAS folder (i.e. TrueNASStorage).
And in console, as root@SyncThing, I can create file in /mnt/Server01, but cannot remove or rename the file.
And Hints? Thanks!