Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed xubuntu and transmission daemon, set the download path to my home/user/TV shows, and get a permission denied when trying to download torrents through transmission.

I tried chmod -r 777 on this folder without success.

please help!

output of ps -ef | grep transmission

chen@htpc:~$ ps -ef | grep transmission
109       1023     1  1 21:46 ?        00:00:35 /usr/bin/transmission-daemon --config-dir /var/lib/transmission-daemon/info

chen@htpc:~$ ps aux | grep transmission
109       1023  3.2  0.4  47684 16620 ?        Ssl  21:46   1:20     /usr/bin/transmission-daemon --config-dir /var/lib/transmission-daemon/info
chen      1852  0.0  0.0   4200   772 pts/0    S+   22:27   0:00 grep --color=auto transmission

enter code here
share|improve this question
    
Can you add the output of ps -ef | grep transmission to the question. I don't think transmission-daemon has the right to write to home dirs by default. –  mikewhatever Nov 23 '12 at 20:09
    
I added it, how do I add permissions to this user ? –  Chen Kinnrot Nov 23 '12 at 20:18
    
Well, I was after the name of the user it runs under, but it's not shown. Try ps aux | grep transmission instead. –  mikewhatever Nov 23 '12 at 20:25
    
Hm..., it looks like its username it 109 - kind of odd. –  mikewhatever Nov 23 '12 at 20:39
    
This is really bizarre, but it should be running under debian-transmission, not sure why it shows a stupid number. You can verify that with id debian-transmission. –  mikewhatever Nov 23 '12 at 20:46

3 Answers 3

up vote 12 down vote accepted

Assuming the path to the download folder is /home/chen/TV shows, run the following:

  • add chen to the debian-transmission group

    sudo usermod -a -G debian-transmission chen

  • change the folder ownership

    sudo chgrp debian-transmission /home/chen/TV\ shows

  • grant write access to the group

    sudo chmod 770 /home/chen/TV\ shows

  • Stop the deamon with sudo service transmission-daemon stop

  • The last thing to do is change the file creation mask, so that the downloaded files would be writeable by chen.

    sudo nano /etc/transmission-daemon/settings.json
    

    ...and change "umask": 18 to "umask": 2. Hit ctrl+o to save and ctrl+x to exit.

    Start the daemon with sudo service transmission-daemon start

share|improve this answer

This is a permission issue based on the user ID that is running Transmission. Transmission sets up a default user that you might not expect on first install. The user name is debian-transmission.

I will explain how to change that:

  1. Stop the Transmission daemon sudo service transmission-daemon stop
  2. Open the Transmission config file for editing: sudo nano /etc/init.d/transmission-daemon
  3. Find the line that says USER=debian-transmission and change it to the user that owns the folder in question. If you are not concerned about security issues, you can also use USER=root in this file. (Not advised, but good for troubleshooting).
  4. Alternatively (instead of point number 3), modify the /etc/fstab folder to mount the folder with correct permissions for the user that runs the transmission-daemon.
  5. Start the Transmission daemon sudo service transmission-daemon start
share|improve this answer

This might be an apparmor profile problem. Transmission runs under the sanitized_helper profile in apparmor.

Look for complaints in /var/log/kern.log. grep transm /var/log/kern.log, particularly just after trying to run transmission and it failing.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.