Transmission Configuration | FreeNAS 9.1

Status
Not open for further replies.

livecaller

Cadet
Joined
Sep 1, 2013
Messages
7
What could be wrong? I'm new to FreeNAS, and i've manged to get all configurations done. Just I cant get this Transmission to work linking it to my Download folder!

"Error: Permission denied"
I can tell its something got to do with permissions on my Download folder. I would appreciate your help. Thanks





Untitled-2.jpg
 

Yatti420

Wizard
Joined
Aug 12, 2012
Messages
1,437

Attachments

  • minidlna.png
    minidlna.png
    86.7 KB · Views: 647

livecaller

Cadet
Joined
Sep 1, 2013
Messages
7
Depends how permissions are setup.. I do my own permissions by hand before moving stuff currently.. It's been awhile since I worked with transmission.. My guess is transmission doesn't have permission to write to the folder.. Just create your own folder with full perms link it to the jail /tmp (or any other directory where your not having problems).. Let transmission write there.. http://doc.freenas.org/index.php/Plugins

Edit: I've never touched the transmission config as far as I know..

Well, your download directory is pointed to a folder inside the jails .. i would like to point to a different directory called /mnt/storage/Dowload
Whats the possibility assigning a directory for downloads not from within the Jails?
 

livecaller

Cadet
Joined
Sep 1, 2013
Messages
7
You can link to a directory outside of the jail: http://doc.freenas.org/index.php/Adding_Jails#Adding_Storage. The transmission user will need permissions to the outside dir as well.

Thanks dlavigne! Damn, how come I missed that menu on the left side.

For those who still wonders:
Go to the left drop down menu called "Jails" (Find you pr- created jails name) and pick it up "dlna_1" in my case and "Add Storage" and simple assign directory and mirror it.


Untitled_1.jpg
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
What could be wrong? I'm new to FreeNAS, and i've manged to get all configurations done. Just I cant get this Transmission to work linking it to my Download folder!

"Error: Permission denied"
I can tell its something got to do with permissions on my Download folder. I would appreciate your help. Thanks


Hi, I have your same problem....I'm just able to make it work downloading in the "/media" jail folder but not in another folder outside the jail, unless i don't use the "add storage" jail button.
Is there a way to add the jail user to the /mnt/yyyy folder i want to use? Where can i find jail users information in order to add them to the groups outside the jail?

thanks
 

Todd Nine

Dabbler
Joined
Nov 16, 2013
Messages
37
Hey guys,
This is also an issue I'm running in to. I've set up a media directory in the zfs system at /mnt/originaldisk/media. I've then created a group "media" that has full rwx permission on that directory. This works well, but I and my girlfriend can work with this directory over afs. Now, I've installed transmission in a jail, and I've created a mount point to the external system.

(jail root)/Downloads => /mnt/originaldisk/media/Downloads

However, when I use transmission, it fails due to a permission denied. I ssh into the chroot (as the root admin, not the chroot user), and I can clearly see the permissions on this mount point are the issue. However, the statement "transmission will need permissions" doesn't tell me quite enough info. I'm a software engineer, and I do a load of linux work. So I understand the user->group and permission part, what I don't understand is what the actual permission are. Could anyone answer these questions below? It will really help clarify things for me.


1) Where can I find out what user a jail is executing it's programs as? I have multiple jail environments, is it the same for all jail environments, or per jail environments?

2) Once I find this user, is it possible to add them to the group "media" via the UI, or do need to do it via ssh?

Thanks guys!
Todd
 

Keith Manns

Dabbler
Joined
Nov 13, 2013
Messages
16
I'm pretty sure I have similar issue, except I've been able to mount an outside source to my jail so I can select directories outside of the jail for the files to be saved. My problem is, I can't or dont know how to change permission so that I can have access to the files that are being downloaded to the outside source. Once downloaded, I can't move them, delete them, or anything other than copy and paste them to the folders I want. Any help would be appreciated. Or if you could type a line of code that I could use to change the permissions would be great as well.

Edit: Ok, so I went back and looked at the instructions on this. And looked at the pictures you guys posted above and I notice that when I go mount storage to my jail, it doesn't give me the option to check or uncheck the Read Only option. Its like its already enabled. How can I turn this off? Thanks.
 

ljdelight

Cadet
Joined
Nov 27, 2013
Messages
7
Once downloaded, I can't move them, delete them, or anything other than copy and paste them to the folders I want.

I had issues like this and had to change Transmission's settings.json file. I'm not sure of your experience, so I'll give details.
  • In a terminal as root, use jls to see which jail id contains transmission; then start a shell in that jail with jexec <jid> csh.
  • On my system Transmission settings are at /usr/pbi/transmission-amd64/etc/transmission/home/settings.json (use 'edit' or 'vi' to modify this file).
  • Add this to the json file: "umask": 2 (remember, it's a JSON file so add a comma and don't mess it up)
  • Restart transmission and test
From this wiki you might consider using world-writable umask of 0:
  • umask: Number (default = 18) Sets transmission's file mode creation mask. See ​the umask(2) manpage for more information. Users who want their saved torrents to be world-writable may want to set this value to 0. Bear in mind that the json markup language only accepts numbers in base 10, so the standard umask(2) octal notation "022" is written in settings.json as 18.
 

ljdelight

Cadet
Joined
Nov 27, 2013
Messages
7
1) Where can I find out what user a jail is executing it's programs as? I have multiple jail environments, is it the same for all jail environments, or per jail environments?
In the jail you can execute ps -aux | grep transmission and you'll see a USER column. See the umask with su -c transmission -m transmission -c "umask". I don't know the freenas details, but I think the users are distinct within each jail.



2) Once I find this user, is it possible to add them to the group "media" via the UI, or do need to do it via ssh?

The user in within the jail, so you can't do it using the GUI. What you need to do is add your media group to the jail...
  1. Outside of the jail, get the gid of "media" (cat /etc/group | grep media). Write this number down.
  2. Get in your jail.
  3. Add a line into /etc/group for the group 'media' using the gid we found above. I realized that the 'media' group will already exist in the jail, so all you need to do is add the transmission user to it!
    1. The added line will look like this: media:*:<YOUR_GID>:youruser,transmission
  4. Check that transmission is in the 'media' group: groups transmission
  5. We now have users in the jail within the same group. However, when transmission user creates a new file the 'media' group is given read-only access due to the umask. We need to change the umask (see my post above).
This might set the transmission umask, but I don't remember if it sticks after reboot: su - transmission; umask 002; exit
 
Status
Not open for further replies.
Top