Samba permissions within jail (cannot view file)

Status
Not open for further replies.

SavageCore

Dabbler
Joined
Jun 24, 2015
Messages
17
Hey all

So I have a jail deluge which has 2 mounts media (CIFS) and deluge_data.

I'm using FileBotTool plugin in deluge to create a symlink from /mnt/deluge_data/completed/movies/Totally Cool/totallycool.mkv to /mnt/media/share1/Movies/Totally Cool (2017)/Totally Cool.mkv

When browsing as user savagecore I see the Totally Cool (2017) folder but not the movie file itself.

ls -l "/mnt/media/share1/Movies/"

drwxrwxr-x+ 2 1002 multimedia 3 Apr 27 17:28 Totally Cool (2017)

ls -l "/mnt/media/share1/Movies/Totally Cool (2017)"

lrwxr-xr-x 1 deluge multimedia 105 Apr 27 17:28 Totally Cool.mkv -> ../../../../deluge_data/completed/movies/totallycool.mkv

e9WNS3I.png


Code:
root@deluge:/ # getfacl /mnt/media/share1/
# file: /mnt/media/share1/
# owner: 1002
# group: multimedia
			owner@:rwxpDdaARWcCo-:fd----:allow
			group@:rwxpDdaARWcCo-:fd-n--:allow
		 everyone@:r-x---a-R-c---:fd----:allow
		 user:1004:rwxpDdaARWcCo-:fd----:allow


Code:
root@deluge:/ # getfacl /mnt/media/share1/Movies/
# file: /mnt/media/share1/Movies/
# owner: 1002
# group: multimedia
			group@:rwxpDdaARWcCo-:fd----:allow
			owner@:rwxpDdaARWcCo-:fd----:allow
			group@:rwxpDdaARWcCo-:------:allow
		 everyone@:r-x---a-R-c---:fd----:allow
		 user:1004:rwxpDdaARWcCo-:fd----:allow


Users:

savagecore (1002)
deluge (1006)
armane (1004)

Each of the users has auxillary group multimedia.

So the idea is anyone in group multimedia can read and write to media allowing deluge to symlink and savagecore/armane to play it.

I followed solution 3 here

Where might I be going wrong? Anything created by user deluge is not viewable...

Thanks
 

Space

Cadet
Joined
Apr 27, 2017
Messages
9
The two mounts, which type are they ?
I had errors when mounting smb under jail.
 

SavageCore

Dabbler
Joined
Jun 24, 2015
Messages
17
The shares? They are both Windows type. Is that what you needed to know? I'm still at a loss here!
 

Space

Cadet
Joined
Apr 27, 2017
Messages
9
Because, on my fresh new install, I was unable in the jail to mount SMB at all .. Permission error.

At the end, the only solution I was able to muster, was mount the samba shares a level higher, under FreeNAS, and then present that storage mount in the jail..

You mounted in the deluge jail your samba share without a problem ?
 

SavageCore

Dabbler
Joined
Jun 24, 2015
Messages
17
Yes no issue mounting the shares
 
Status
Not open for further replies.
Top