Transmission-daemon 无法写入下载文件夹。
(我以前安装并使用过变速器,我不记得曾经遇到过问题,我读过这些论坛,但找不到答案。)
Ubuntu 22.04,最近/全新安装和 Transmission-daemon。任何帮助都将不胜感激!:) 谢谢
据我理解,这说明 transmission-daemon 以用户“debian-transmission”的身份运行;
!
My_User@Store:~$ ps ax o user:20,pid,pcpu,pmem,vsz,rss,stat,start_time,time,cmd | grep trans
!
debian-transmission 52574 0.1 0.3 178152 11332 Ssl Oct21 00:00:57 /usr/bin/transmission-daemon -f --log-error
!
文件夹权限显示debian-transmission具有rw权限;
!
My_User@Store:~/Downloads$ ls -l
total 12
drwxrwx--- 2 debian-transmission debian-transmission 4096 Oct 9 13:08 Torrent_Files
drwxrwx--- 2 debian-transmission debian-transmission 4096 Oct 21 21:11 Torrents_Complete
drwxrwx--- 2 debian-transmission debian-transmission 4096 Oct 9 13:07 Torrents_Downloading
!
我不确定这有多大关系,但是 transmission-daemon 的 init.d 用户设置为 debian-transimission;
!
/init.d/transmission-daemon
!
NAME=transmission-daemon
DAEMON=/usr/bin/$NAME
USER=debian-transmission
STOP_TIMEOUT=30
!
传输尝试写入文件夹时出现系统日志错误;
!
/var/log/syslog
Oct 22 14:50:32 store transmission-daemon[52574]: [2022-10-22 14:50:32.351] Couldn't create "/home/My_User/Downloads/Torrents_Downloading/Mastering Ubuntu Server, 3rd Edition": Permission denied (file-posix.c:243)
Oct 22 14:50:32 store transmission-daemon[52574]: [2022-10-22 14:50:32.353] Couldn't create "/home/My_User/Downloads/Torrents_Downloading/Mastering Ubuntu Server, 3rd Edition": Permission denied (fdlimit.c:174)
Oct 22 14:50:32 store transmission-daemon[52574]: [2022-10-22 14:50:32.353] Mastering Ubuntu Server, 3rd Edition tr_fdFileCheckout failed for "/home/My_User/Downloads/Torrents_Downloading/Mastering Ubuntu Server, 3rd Edition/Mastering Ubuntu Server, 3rd Edition.epub.part": Permission denied (inout.c:95)
Oct 22 14:50:32 store transmission-daemon[52574]: [2022-10-22 14:50:32.353] Mastering Ubuntu Server, 3rd Edition Permission denied (/home/My_User/Downloads/Torrents_Complete/Mastering Ubuntu Server, 3rd Edition/Mastering Ubuntu Server, 3rd Edi (torrent.c:574)
Oct 22 14:50:32 store transmission-daemon[52574]: [2022-10-22 14:50:32.353] Couldn't create "/home/My_User/Downloads/Torrents_Downloading/Mastering Ubuntu Server, 3rd Edition": Permission denied (file-posix.c:243)
Oct 22 14:50:32 store transmission-daemon[52574]: [2022-10-22 14:50:32.353] Couldn't create "/home/My_User/Downloads/Torrents_Downloading/Mastering Ubuntu Server, 3rd Edition": Permission denied (fdlimit.c:174)
Oct 22 14:50:32 store transmission-daemon[52574]: [2022-10-22 14:50:32.353] Mastering Ubuntu Server, 3rd Edition tr_fdFileCheckout failed for "/home/My_User/Downloads/Torrents_Downloading/Mastering Ubuntu Server, 3rd Edition/Mastering Ubuntu Server, 3rd Edition.epub.part": Permission denied (inout.c:95)
!
答案1
不确定您是否解决过这个问题,但我遇到了同样的问题(至少是相同的错误代码),并且发现虽然我尝试下载 torrent 的特定文件夹(./Torrents/Downloads)归 debian-transmission:debian-transmission 所有,但父文件夹(./Torrents)归 USERNAME:users 所有。
我不确定为什么需要这样做,但我发现将父文件夹的所有权更改为 debian-transmission:debian-transmission 可以解决问题。