V
V
Viktor Familyevich2019-06-16 17:42:54
linux
Viktor Familyevich, 2019-06-16 17:42:54

How to download torrents via transmission-daemon to a folder with www-data permissions?

I want to make friends with Nextcloud and Transmisssion, for this I try to download torrents to the Nextcloud data folder, which has the following rights drwxr-xr-x 1 www-data www-data 0 Jun 16 17:40 Downloads.
When trying to download Transmisssion writes the error "Permission denied (/media/myCloudDrive/ncdata/User/files/Downloads/Triple border_2019_WEB-DLRip.avi)"
Tell me where to dig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Viktor Familyevich, 2019-06-17
@Wintego

I did this: I
added the debian-transmission user to the www-data group, then:
sudo setfacl -Rm u:debian-transmission:rwX /media/myCloudDrive/ncdata/User/files/Downloads
sudo setfacl -Rdm u:debian-transmission:rwX /media/myCloudDrive/ncdata/User/files/Downloads

K
Kalombyr, 2019-06-16
@Kalombyr

In my opinion, there are several options:
1. Run Transmission as the www-data user (which is not very good)
2. Create a subfolder with the necessary rights (and / or at the same time create a group, add the Transmission user to it, and also add everyone who access to this folder will be allowed), you don't have to download to the root ...

K
ky0, 2019-06-16
@ky0

Make the directory writable by a group and add the transmission user to that group, e.g.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question