Transmission permission denied error
|
Posts: 24
Threads: 13
Joined: Feb 2016
Reputation:
0
[Not Solved]
Mar 16, 2016, 10:04 AM
I installed Transmission via the installer on the Banana Pi server image.
I've been having problems trying to download torrents with it though.
I keep on getting permission denied errors, I've had a search on Google and tried a few of the suggestions on there but I'm still having a problem.
Anyone able to help?
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Not Solved]
Mar 16, 2016, 10:10 AM
Are you using the Jessie image?
Provide the path of the folders you are trying to download to and the current permissions:
Code:
ls -lh /download/folder
Show your settings.json file (find it with find / -iname settings.json), there should be two.
Posts: 24
Threads: 13
Joined: Feb 2016
Reputation:
0
[Not Solved]
Mar 16, 2016, 11:08 AM
(Mar 16, 2016, 10:10 AM)Mike Wrote: Are you using the Jessie image?
Provide the path of the folders you are trying to download to and the current permissions:
Code:
ls -lh /download/folder
Show your settings.json file (find it with find / -iname settings.json), there should be two.
Yes, I'm using the Jessy image
ls -lh /mnt/usb/downloads
Code:
drwxr-xr-x 3 pi debian-transmission 4.0K Mar 13 15:48 comics
drwxrwxr-x 2 pi debian-transmission 4.0K Mar 15 15:30 couchpotato
drwxrwxr-x 2 pi debian-transmission 4.0K Mar 15 15:30 ebook
drwxrwxr-x 4 pi debian-transmission 4.0K Mar 13 19:00 misc
drwxrwxr-x 2 pi debian-transmission 4.0K Feb 17 23:51 music
drwxrwxr-x 2 pi debian-transmission 4.0K Mar 16 05:25 sickrage
Both the config in /etc/transmission-daemon/settings.json and /var/lib/transmission-daemon/.config/transmission-daemon/settings.json contain the same information.
Code:
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "/mnt/usb/downloads",
"download-limit": 100,
"download-limit-enabled": 0,
"download-queue-enabled": true,
"download-queue-size": 2,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/mnt/usb/downloads/..downloads",
"incomplete-dir-enabled": true,
"lpd-enabled": false,
"max-peers-global": 200,
"message-level": 1,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 200,
"peer-limit-per-torrent": 50,
"peer-port": 46426,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": true,
"port-forwarding-enabled": false,
"preallocation": 1,
"prefetch-enabled": 1,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{273de68de3a1945abfece02ffdfc578c4481cdafoC9LpDIZ",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "pi",
"rpc-whitelist": "*.*.*.*",
"rpc-whitelist-enabled": false,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": false,
"seed-queue-size": 4,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 2,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14,
"utp-enabled": true
}
I've also tried changing the user in /etc/init.d/transmission-daemon file to pi from debian-transmisson
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Not Solved]
Mar 16, 2016, 11:36 AM
If you are on jessie you should have a transmission-daemon.service
Code:
find / -iname transmission-daemon.service
If you have it then follow this guide and you will need to change the permissions on your settings.json to be the pi user.
Your storage folder should have pi pi as the owner and group, the installer adds the debian-transmission user to the pi group so it will have access to the /usb/storage folder if it has permissions 775
Then change your /usb/storage/ to have pi as the owner as outlined here
Posts: 24
Threads: 13
Joined: Feb 2016
Reputation:
0
[Not Solved]
Mar 16, 2016, 12:02 PM
Thanks, that fixed it for me.
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Not Solved]
Mar 16, 2016, 12:04 PM
A specific part or all of it? I have updated the installer to link to that page upon completion. Thanks for the report.
Posts: 24
Threads: 13
Joined: Feb 2016
Reputation:
0
[Not Solved]
Mar 16, 2016, 12:23 PM
(Mar 16, 2016, 12:04 PM)Mike Wrote: A specific part or all of it? I have updated the installer to link to that page upon completion. Thanks for the report.
I'm not sure, probably a combination of both.
I changed the user transmission runs as in this file /etc/init.d/transmission-daemon then ran these four commands
sudo chown -R pi:pi /mnt/usb
sudo chmod -R 775 /mnt/usb
sudo setfacl -Rdm g:pi:rwx /mnt/usb
sudo setfacl -Rm g:pi:rwx /mnt/usb
|
|
|