Is there anyone who is good at Jails, mounting Samba Share and Sickbeard?
Me and my Brother is running two FreeNAS servers over a VPN tunnel. VPN is working great and we have access to both our network. (25/25 mbit on both connections)
So lets say mine is S1 and my brother is S2
What i want is S1 to have full Access with "rwe" permissions. I have my own user on S2 that have full rwe access. so here is my problem
When i use mount_nfs i need to have the same users as S2 on S1 but i cannot do that so i found mount_smbfs that i can use my own user like this
okay so far ok.
So when i try to go into the folders using my self as root user with su.
then i try to edit into the folders
it works. fine
Now i try the same thing with a non root user
This is not working. Only Root have access to this folder now.
Now i mount this folder into Jail.
and since I have to be root to use jexec into jail i can create and remove folders on the mount
this is in jail
so far so good in Jail.
But now comes the part where its hard for me.
I'm trying to get Sickbeard to access those files, but they wont.
i get an error msg says
and i dont know what permissions Sickbeard needs. Been googlin. but nothing has come up.
So i asked around. come up with that i couold SSH into sickbeard to see if sickbeard has access to those files. So I Installed Python. and come up with this
If there is anyone who knows about SMBfs shares, if he/she could help me. i'm a bit stuck now and been trying to get this working for 3 weeks.
How can i get SIckbeard to get access to those files.
regards Halfe
Me and my Brother is running two FreeNAS servers over a VPN tunnel. VPN is working great and we have access to both our network. (25/25 mbit on both connections)
So lets say mine is S1 and my brother is S2
What i want is S1 to have full Access with "rwe" permissions. I have my own user on S2 that have full rwe access. so here is my problem
When i use mount_nfs i need to have the same users as S2 on S1 but i cannot do that so i found mount_smbfs that i can use my own user like this
Code:
mount_smbfs -I 192.168.0.2 -U halfe //192.168.0.2/Storage1 /mnt/(local path)
Password:
okay so far ok.
So when i try to go into the folders using my self as root user with su.
Code:
ls -l
total 1216
drwxr-xr-x 1 root wheel 16384 Apr 22 22:10 ./
drwxr-xr-x 1 root wheel 16384 Jan 1 1970 ../
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder1/
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder2/
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder3/
then i try to edit into the folders
Code:
mkdir 1
ls -l
total 1232
drwxr-xr-x 1 root wheel 16384 Apr 22 22:10 ./
drwxr-xr-x 1 root wheel 16384 Jan 1 1970 ../
drwxr-xr-x 1 root wheel 16384 Apr 22 22:10 1/
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder1/
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder2/
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder3/
it works. fine
Now i try the same thing with a non root user
Code:
mkdir 2
ls -l
total 1248
drwxr-xr-x 1 root wheel 16384 Apr 22 22:10 ./
drwxr-xr-x 1 root wheel 16384 Jan 1 1970 ../
drwxr-xr-x 1 root wheel 16384 Apr 22 22:10 1/
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder1/
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder2/
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder3/
Now i mount this folder into Jail.
and since I have to be root to use jexec into jail i can create and remove folders on the mount
this is in jail
Code:
root@Download:~ # mkdir /mnt/(folderpath)/2
root@Download:~ # /mnt/folderpath/ ls -l
total 1216
drwxr-xr-x 1 root wheel 16384 Apr 22 22:10 1
drwxr-xr-x 1 root wheel 16384 Apr 22 22:19 2
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder1
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder2
drwxr-xr-x 1 root wheel 16384 May 10 2013 Folder3
so far so good in Jail.
But now comes the part where its hard for me.
I'm trying to get Sickbeard to access those files, but they wont.
i get an error msg says
Code:
2014-04-23 07:20:27 CP Server Thread-10 :: Failed creating /mnt/Media/(path to folder) : error 13 : Permission denied
and i dont know what permissions Sickbeard needs. Been googlin. but nothing has come up.
So i asked around. come up with that i couold SSH into sickbeard to see if sickbeard has access to those files. So I Installed Python. and come up with this
Code:
root@Download:/usr/pbi/sickbeard-amd64/share/sickbeard/Sick-Beard # python2 SickBeard.py
The Python module Cheetah is required
How can i get SIckbeard to get access to those files.
regards Halfe