Transmission and rights

Status
Not open for further replies.

rangopango

Contributor
Joined
Feb 21, 2018
Messages
151
How do I allow my Transmission plugin in a jail access to a pool so that it can read and write files iin it?
 

Mannekino

Patron
Joined
Nov 14, 2012
Messages
332
Hi,

Which version of FreeNAS are you running?

In any case, you need to setup a mount point in your jail. You can do this from the web UI. I still need to do some fine tuning on my new FreeNAS server. But I have the following setup:
  • I have a "transmission" dataset which I mounted in the Transmission jail in "/media".
  • My Transmission dataset contains 3 folders "Downloads", "Incomplete" and "Torrents". The first and second are self explanitory and the third folder is configured as my Transmission watch-dir. So I just copy a Torrent file in that directory and it will get added to the list of Torrents in Transmission.
  • The Transmission dataset is also shared via Samba.
  • I added the transmission user and group (both UID 921 by default) to my FreeNAS users/groups.
  • I also have a group called "entertainment".
  • My personal user account is added to the group entertainment.
  • The FreeNAS dataset has user "transmission" and group "entertainment".
  • User and group have full rights on the dataset.
  • This way I can access, modify and delete with my personal user on the SMB share.
The only problem I currently have is the following. When Transmission adds a new Torrent it does so with transmission:transmission. I want to add the group entertainment to the jail also and make sure Transmission created new files and folder with transmission:entertainment instead. I could also add myself to the group transmission in FreeNAS but I rather have this dataset to have transmission:entertainment. That's more in line with my other datasets.

I still need to learn more about ACLs. Everythign is working for me now, but I feel like I could do a lot more fine tuning with regards to access rights. I could make some screenshots this evening when I get home from work. I'm running on FreeNAS 11.2-RC1 I installed my new FreeNAS server last weekend after the release of RC1. So far so good.
 

rangopango

Contributor
Joined
Feb 21, 2018
Messages
151
I'm using FreeNAS-11.1-U4. That's actually very similar to what I have (downloads, incomplete and torrents folders). I have done those steps, but it still won't work because it doesn't have write and read rights :/
 

Mannekino

Patron
Joined
Nov 14, 2012
Messages
332
Have you checked if the mount point was successfully created in the jail using the shell?

You should be able to launch a jail shell from the web UI and navigate to the directory where you mounted the dataset or folder for Transmission.

That should be the first step to check if the mount was successful and you can see the files and folders from the dataset or folder you mounted. From there you can check the user and group of the files to see if they are correct.

In my example it looks like in the screenshots below. As said in my earlier comment I still need to figure out how to change the group Transmission uses to write away new files, it's currently set to transmission:transmission.

As a temporary workaround I also created the transmission group in FreeNAS itself with the same GID and added myself in that group also so I'm able to do stuff with newly added Torrents via SMB share.

Even though I'm using 11.2-RC1 the proces is pretty much the same with 11.1-U4 (I used 11.1-U6 on my old server).
  • First screenshot are the permissions of the transmission dataset I created
  • Second screenshot is the mount point I created with a listing of the files and folder of the mount point
  • Third screenshot a view of the transmission user (921 UID) in FreeNAS and the group (921 GID). Inside the jail the transmission user and group have the same UID and GID.

c10T74w.png


auMvyiU.png


YLCKVhM.png
 
Last edited:

Mannekino

Patron
Joined
Nov 14, 2012
Messages
332
This is what I see when I launch a shell from the web UI for the jail and navigate to /media and do a file and directory listing.

I just reapplied the rights using the dataset permissions feature. As you can see I haven't added the entertainment group yet in the jail with GID 1001 so the jail doesn't recognize the group yet.

But it's not an issue because everything is owned by the transmission user. I still need to add the entertainment group to the jail and make sure transmission uses that group to create new files and folders.

sgt30qw.png
 

rangopango

Contributor
Joined
Feb 21, 2018
Messages
151
I'll bookmark this thread and update my FreeNAS box when the new updates are more stable and I'll try your settings, hopefully it'll work :P
 
Status
Not open for further replies.
Top