Permission Denied on my raspberry pi transmission

0

I installed on my Raspberry pi 3 running on Debian the headless version of transmission:

sudo apt-get install transmission-daemon

After this I stopped the service and I modified the settings:

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

Beyond changing user and password I changed also the download directory:

...
"download-dir": "/home/pi/Desktop",
...

After this I rebooted the service

sudo service transmission-daemon start

Now if I try to download any file I obtain the following error:

Error: Permission denied (/home/pi/Desktop/ubuntu-17.04-desktop-amd64.iso)

I don't see what I've done wrong.

Timmy

Posted 2017-08-03T11:11:14.943

Reputation: 203

Answers

1

The Transmission daemon runs as the debian-transmission user. This user is (probably) not allowed to write to /home/pi/Desktop. You can verify this with ls -ld /home/pi/Desktop and interpreting the output.

Change the permissions/ownership on /home/pi/Desktop or let Transmission download to a file where it is allowed to store data.

You can give debian-transmission access to the folder with chown or setfacl. In case you're not inclined to do any research on that, the following will probably work:

$ setfacl -m u:debian-transmission:rwX /home/pi/Desktop

mtak

Posted 2017-08-03T11:11:14.943

Reputation: 11 805

Ok, these are the permission: drwxr-xr-x 2 pi pi 4096 giu 8 23:03 /home/pi/Desktop It's possible to allow debian-trasmission to write also on pi folders? – Timmy – 2017-08-03T12:21:28.000

It is... See answer – mtak – 2017-08-03T13:13:37.983

Thank you, I'll try when I can access again to my raspberry – Timmy – 2017-08-05T15:28:31.433

@Timmy, any updates? If this solves your problem, please mark it as such so other people know this could solve their issue. – mtak – 2017-08-08T06:34:11.567

I'm really sorry the raspberry is gone off and so I don't have anymore the ssh access, in a couple of week I'll be physically there. – Timmy – 2017-08-12T16:44:18.167