UPDATE: Cristian commented adding a nice solution (which I didn’t personally test though, so it’s on you):
- run chmod 775 on the download folder, with -R option (recursive on subfolders):
sudo chmod -R ug+rw folderName
- add your own user (the one you need to be able to access the downloaded files) to debian-transmission group, or any other group that the transmission daemon belongs to:
sudo usermod -a -G groupName userName
And that would be all.
Or, this is the original article with the original solution.
I have a raspi3 running transmission daemon downloading to an external USB drive shared via Samba. I don’t want to keep using debian-transmission user with the daemon since just switching to my user account having the access rights to the external USB is much simpler.
I had it already nice and running before, but updating the daemon with apt-get messed everything (and lost all the running torrents as well) so I had to rediscover the procedure once again, and for posterity (and myself for future occasions) I’m writing it down here.
By the way all the missing torrents appeared again after I solved the issue.
So, here are the things you need to do:
- run sudo service transmission-daemon stop just in case
- edit /etc/init.d/transmission-daemon to have USER=username
- edit /lib/systemd/system/transmission-daemon.service to the same effect
- run sudo chown -R user:user /etc/transmission-daemon/
- run sudo chown -R user:user /var/lib/transmission-daemon/
Done.
According to a comment of this article, this might not work for you, so instead you might want to follow this guide instead:
https://askubuntu.com/questions/261252/how-do-i-change-the-user-transmission-runs-under/544185#544185
THIS IS OUTDATED INFO.
IT WILL NOT WORK IN UBUNTU 16+.
See this for more info:
https://askubuntu.com/a/544185/326207
Thank you, I will be updating the guide to reflect this (even though it worked for me on raspbian stretch…)
Hi, reading this guide (and applying it) I just found that.The message about the permissions that the web interface shows is a matter of user and file management (a linux thing)
So the only thing is needed is:
1.- See that the download folder has group permissions (chmod 775)
2.- Add the user to the group that the files belongs
(https://askubuntu.com/questions/79565/how-to-add-existing-user-to-an-existing-group)
There’s no need to change anything from the debian app. (worked for me)
Cheers!
Thank you!
Surely this looks way easier, I will link to this comment from the article