传输在 UUID 磁盘和适当的权限上不起作用

传输在 UUID 磁盘和适当的权限上不起作用

我无法完成任何下载,当下载大约 5mb 时,我收到权限被拒绝错误

transmission 正在 debian-transmission 上运行

答案对我没有用

此外,我正在写入的磁盘对每个人都具有读写权限,但所有者设置为 sudo 用户

如果您需要更多信息,请随时询问!

设置.json:

 {
"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/raid1/downloads", 
"download-limit": 100, 
"download-limit-enabled": 0, 
"download-queue-enabled": true, 
"download-queue-size": 5, 
"encryption": 1, 
"idle-seeding-limit": 30, 
"idle-seeding-limit-enabled": false, 
"incomplete-dir": "/var/lib/transmission-daemon/Downloads", 
"incomplete-dir-enabled": false, 
"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": 51413, 
"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": "", 
"rpc-port": 9091, 
"rpc-url": "/transmission/", 
"rpc-username": "diadras", 
"rpc-whitelist": "*", 
"rpc-whitelist-enabled": true, 
"scrape-paused-torrents-enabled": true, 
"script-torrent-done-enabled": false, 
"script-torrent-done-filename": "", 
"seed-queue-enabled": false, 
"seed-queue-size": 10, 
"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
}

ls -l /mnt/raid1/ 的输出:

diadras@Desktop:~$ ls -l /mnt/raid1/
total 52
drwxrwxr-x   2 diadras             diadras              4096 mei 13 16:21 Backup
drwxrwx---  10 debian-transmission debian-transmission  4096 mei 26 10:52 downloads
drwx------   2 root                root                16384 mrt  3 23:35 lost+found
-rw-------   1 diadras             diadras                82 mei 26 16:47 nohup.out
drwxrw-rw-   3 diadras             diadras              4096 mrt  4 16:43 owncloud2
drwxrw----.  3 diadras             diadras              4096 mrt  4 16:43 owncloudbackup
drwxrwxr-x   3 diadras             diadras              4096 mei 26 16:57 ShoppingBuddy
drwxrwxr-x.  2 diadras             diadras              4096 mrt  4 12:02 VM1

答案1

我没有去修改配置文件,而是阻止 transmission-daemon 自动运行,而是选择按需运行它。我创建了一个名为“fetch”的新用户,没有 shell,并让他成为 plugdev 组的成员。

然后,从我自己的 shell 中执行......

sudo -H -u fetch bash -c "transmission-daemon"

配置文件当然位于/home/fetch/.config

除非您的文件系统权限出现问题,否则替换debian-transmission应该fetch可以允许进程写入必要的目录。

祝你好运。

相关内容