传输监视目录权限

传输监视目录权限

这是我的ls -al /NAS/

efirlus@Efirlus-NAS:~$ sudo ls -al /NAS/

drwxrwxr--+  10 root                root                4096 Feb 25 18:28 .
drwxr-xr-x    4 root                root                4096 Feb 25 18:28 ..
drwxrwxr--+   2 debian-transmission debian-transmission 4096 Feb 25 19:25 Downloads
drwxrwxr--+   2 debian-transmission debian-transmission 4096 Feb 25 19:35 Torrent
drwxrwxr-x   2 debian-transmission debian-transmission 4096 Feb 25 19:43 tempdown

我想要的是

当我将种子文件放入时/Torrent,传输会自动使用开始下载,如果下载完成则/tempdown继续移动它。/Downloads

所以我做了如下设置

    "download-dir": "/NAS/Downloads",
    "incomplete-dir": "/NAS/tempdown",
    "incomplete-dir-enabled": true,
    "peer-congestion-algorithm": "",
    "umask": 2,
    "watch-dir": "/NAS/Torrent",
    "watch-dir-enabled": true

但它不起作用。journalctl -xe

Feb 25 19:44:35 Efirlus-NAS transmission-daemon[1935]: [2020-02-25 19:44:35.224] watchdir:inotify Failed to setup watchdir "/NAS/Torrent": Permission denied (13) (watchdir-inotify.c:176)
Feb 25 19:44:35 Efirlus-NAS transmission-daemon[1935]: [2020-02-25 19:44:35.224] watchdir Failed to open directory "/NAS/Torrent" (13): Permission denied (watchdir.c:354)
Feb 25 19:44:44 Efirlus-NAS transmission-daemon[1935]: [2020-02-25 19:44:44.223] watchdir Failed to open directory "/NAS/Torrent" (13): Permission denied (watchdir.c:354)

有趣的是,如果我通过 Web 界面手动添加种子/Torrent,它可以毫无问题地启动。但完成的文件/tempdown不会移动到/Downloads

我遵循了指南https://jkpark.github.io/ubuntu1804/10-transmission


更多信息。

efirlus@Efirlus-NAS:~$ sudo groups debian-transmission
    debian-transmission : debian-transmission nogroup
efirlus@Efirlus-NAS:~$ sudo groups nobody
    nobody : nogroup debian-transmission

答案1

我以非常手动和烦人的方式解决了这个问题。

如果有人知道得更多,请回答。


useradd -r我通过电子传输创建了一个具有主文件夹的系统帐户用户

然后,我更改所有与传输相关的目录的 acl。

/var/lib/transmission-daemon
/etc/transmission-daemon
/home/e-transmission/.config/transmission-daemon

和文件

/usr/bin/transmission-daemon
/lib/systemd/system/transmission-daemon.service

setfacl -R -m,与……相同/NAS/torrent, downloads, tempdown

相关内容