Share folder Transmission and Sabnzbd

Status
Not open for further replies.

wenceslauneto

Dabbler
Joined
Jun 15, 2016
Messages
19
Sorry my english.

I use Sickrage and Couchpotato, with Transmission and Sabnzbd.
As I download via torrent and also usenet, I use Transmission or Sabnzbd, depending on the occasion.
I´m having trouble, sharing the destination folder between the two applications.
My structure looks like this:
-------------------------------------------------- --------------------------------------
Vol -> media -> downloads
-> complete (used by Sab)
-> incomplete (used by Sab)
-> movies (must be shared between sab and transmission)
-> series (must be shared between sab and transmission)

-> torrents (download area of the transmission)
-> complete (used for transmission)
-> incomplete (used for transmission)
-------------------------------------------------- -------------------------------------

The idea is that, after the download, move the file to series or movies depending on whether the call was via Sickrage or Couchpotato.
The problem is in the permissions, since Sickrage, Couchpotato and Sabnzbd uses media as UID/GID and the transmission uses transmission as UID / GID.
I already left the folders vol -> media -> downloads - movies and vol -> media -> downloads -> series with permission 777 and even then the transmission does not accept, it gets permission denied.

Is there a way I can share these folders, or will I always have to switch between transmission and sabnzbd, change permissioning?


Tks.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
There are a few solutions to this.

In my setup, I changed transmission's user to 'media'. you could do this by adding that user to the transmission jail with UID 816. then setting transmission to use that user. This would be run in the transmission jail.
Code:
pw useradd -n media2 -u 816 -d /nonexistent -s /usr/sbin/nologin
sysrc 'transmission_user=media2'


Also, you could configure the level transmission writes files with so any process could modify them. The setting is in the FreeNAS WebUI > left panel > Plugins > Transmission > Permissions
 
Last edited:

wenceslauneto

Dabbler
Joined
Jun 15, 2016
Messages
19
Hi Joshua,
When I tried first solution:
root@transmission_1:/ # pw useradd -n transmission -u 816 -d /nonexistent -s /usr/sbin/nologin
pw: login name `transmission' already exists

Second solution:
FreeNAS WebUI > left panel > Plugins > Transmission > Permissions is configured with 777




Tks.

Wenceslau
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
sorry, I made a mistake, the username should be 'media'
Code:
pw useradd -n media -u 816 -d /nonexistent -s /usr/sbin/nologin
 

wenceslauneto

Dabbler
Joined
Jun 15, 2016
Messages
19
Hi Joshua,
I'm using FreeNAS-9.10.2-U1
Already exists media and transmission users in jail:
media:*:8675309:8675309:User &:/home/media:/bin/sh
transmission:*:921:921:Transmission Daemon User:/usr/pbi/transmission-
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I hate that FreeNAS does that now since it conflicts with the username I made for the plugins =\

I modified the commands in my first reply, run that restart the plugin and it will work.
 

wenceslauneto

Dabbler
Joined
Jun 15, 2016
Messages
19
I don't need configure FreeNAS ??? Only jail ?
After config jail, error persist.

Error: Permission denied (/media/downloads/series/..... )

I attached images.
Where is my error ?
 

Attachments

  • Storage.JPG
    Storage.JPG
    12 KB · Views: 377
  • permissions.JPG
    permissions.JPG
    32.8 KB · Views: 363
  • storage_Jail.JPG
    storage_Jail.JPG
    24.9 KB · Views: 386
  • Jail.JPG
    Jail.JPG
    45 KB · Views: 389
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I don't need configure FreeNAS ??? Only jail ?
After config jail, error persist.

Error: Permission denied (/media/downloads/series/..... )

I attached images.
Where is my error ?
you do need to change the ownership of the shared folder.
ignore the media user on the FreeNAS host, it's UID does not match the user we are using in the jail.

Code:
chown -R 816:816 /mnt/vol/Media/Downloads/torrents
 
Status
Not open for further replies.
Top