我在这个问题上咬牙切齿:我正在尝试transmission-daemon
使用incomplete
anddone
目录进行设置。下载到incomplete
确实可以正常工作,但是对于done
目录,我一次又一次地收到拒绝权限:
Feb 22 10:40:25 my-nas transmission-daemon[31244]: [2020-02-22 10:40:25.041] TORRENT tr_fdFileCheckout failed for "/srv/7e5e6032-1f1c-4efc-a74d-f3fe95fe606f/torrent/done/TORRENT/TORRENT_meta.sqlite.part": Permission denied (inout.c:102)
Feb 22 10:40:25 my-nas transmission-daemon[31244]: [2020-02-22 10:40:25.041] TORRENT Permission denied (/srv/7e5e6032-1f1c-4efc-a74d-f3fe95fe606f/torrent/done/TORRENT/TORRENT_meta.sqlite) (TORRENT.c:537)
即使我已经按照这样的说明为user 设置了正确的权限debian-transmission
。
这些是文件夹的权限incomplete
(我可以下载到):
$ getfacl incomplete
# file: incomplete
# owner: user
# group: debian-transmission
# flags: -s-
user::rwx
user:debian-transmission:rwx
user:user:rwx
group::rwx
group:mysql:rwx
mask::rwx
other::r-x
default:user::rwx
default:user:debian-transmission:rwx
default:user:user:rwx
default:group::rwx
default:group:mysql:rwx
default:mask::rwx
default:other::r-x
对于done
(我无法下载到):
$ getfacl done/
# file: done/
# owner: user
# group: debian-transmission
user::rwx
user:debian-transmission:rwx
user:user:rwx
user:stack:rwx
group::rwx
group:mysql:rwx
mask::rwx
other::r-x
default:user::rwx
default:user:debian-transmission:rwx
default:user:user:rwx
default:user:stack:rwx
default:group::rwx
default:group:mysql:rwx
default:mask::rwx
default:other::r-x
据我所知,用户debian-transmission
确实有rwx
权限?我不确定,因为我不是 100% 熟悉 ACL。我怎么解决这个问题?