xbenjii / torrentexpander

Automatically exported from code.google.com/p/torrentexpander
0 stars 0 forks source link

not working with transmission-daemon #67

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. installed transmission-daemon
2. added:

    "script-torrent-done-enabled": true, 
    "script-torrent-done-filename": "/home/mario/torrentexpander/torrentexpander.sh",

to 

/$HOME/.config/transmission-daemon/settings.json

3. the script never gets triggered by transmission-daemon but works fine in 
transmission cli

Using torrentexpander v0.20? On ubuntu 11.10 desktop?

using transmission-daemon 2.60 (13375)
.

Original issue reported on code.google.com by graphict...@gmail.com on 24 Aug 2012 at 8:27

GoogleCodeExporter commented 8 years ago
Hi
You should take a look at this bug report
http://code.google.com/p/torrentexpander/issues/detail?id=66&can=1
To sum things up : Transmission may be run from a different user that does not 
have execute privileges on torrentexpander or write privilege on your 
destination directory.

Please let me know how that works for you

Original comment by addicted...@gmail.com on 24 Aug 2012 at 8:55

GoogleCodeExporter commented 8 years ago
Won't changing user in transmission from transmission-daemon to user introduce 
security issues?

Will this work from 
http://linuxplained.com/install-transmission-web-interface-on-ubuntu-1204/

"It is recommended that Transmission runs under it’s own username for 
security reasons. This creates a few issues with file and folder access by 
Transmission as well as your account (let us assume it is user). You will have 
to create a new set of folders for Transmission to read/write/execute (example: 
transmission folder containing these subfolders: completed, incomplete, and 
torrents). The account mario also needs full control over these folders and 
their contents. I recommend reading this post 
<http://linuxplained.com/safely-change-primary-group-group-in-linux/>to 
familiarize yourself with safely changing user groups and permissions."

First, cd to the desired folder and create a folder for Transmission to use:
cd /home/user/Downloads
mkdir transmission
cd transmission
mkdir completed incomplete torrents

Then, add the username to the group debian-transmission:

sudo usermod -a -G debian-transmission user

This will add debian-transmission as a secondary group to the account user, 
resulting in access to both Transmission and user. Then, change the ownership 
of the Transmission download folders to the group debian-transmission:

sudo chgrp -R debian-transmission /home/user/Downloads/transmission

Next, change the permissions for the transmission download folders to allow 
read, write, and execute for Transmission and mario:

sudo chmod -R 775 /home/user/Downloads/transmission

Original comment by graphict...@gmail.com on 25 Aug 2012 at 6:30

GoogleCodeExporter commented 8 years ago
I'll add this to the wiki

Thanks for your input

   Addictedtoscreens

Original comment by addicted...@gmail.com on 2 Dec 2012 at 9:36