我确实尝试过到处寻找解决方案,但仍然没有找到。
我正在运行 Ubuntu 20.04.3 LTS。我希望 transmission、plex、sonarr 和 radarr 能够访问文件夹以便下载文件。为此,我决定将所有这些用户添加到名为“htpc”的组中。
htpc@htpc:~$ getent group htpc
htpc:x:1000:root,www-data,sonarr,radarr,plex,debian-transmission
我有一个由 htpc:htpc (用户/组) 拥有的 /media/hdd2/Filmek 文件夹。
htpc@htpc:~$ ls -la /media/hdd2/
total 88
drwxrwsrwx+ 14 htpc htpc 4096 Aug 24 14:57 .
drwxr-xr-x 7 debian-transmission debian-transmission 4096 Aug 1 11:01 ..
drwxrwsrwx+ 3 htpc htpc 4096 Aug 1 09:41 Downloads
drwxrwsr-x+ 112 htpc htpc 20480 Jul 25 13:25 Filmek
drwxrwsrwx+ 3 htpc htpc 4096 Sep 29 2019 Kids
drwxrwsrwx+ 2 htpc htpc 16384 Jun 2 2019 lost+found
-rwxrwxrwx+ 1 htpc htpc 1632 Nov 7 2019 lovelace.yaml
drwxrwsrwx 11 htpc htpc 4096 Sep 7 17:34 Osmo
drwxr-sr-x 3 www-data htpc 4096 Aug 24 16:10 owncloud
drwxrwsrwx+ 2 htpc htpc 4096 Mar 19 18:14 Photos
drwxrwsrwx+ 4 htpc htpc 4096 Feb 28 2020 Requested
drwxrwsrwx+ 3 htpc htpc 4096 Nov 4 2019 Stuffs
drwxrwsrwx+ 51 htpc htpc 4096 Sep 7 17:59 'Szinkronos sorozatok'
drwxrwsrwx+ 4 htpc htpc 4096 Aug 4 2019 .Trash-1000
drwxrwsrwx+ 3 htpc htpc 4096 Jun 5 2020 Zene
这是否意味着用户“radarr”应该有权毫无问题地写入该文件夹?
如果 Radarr 尝试导入文件,我仍会收到以下错误消息:
[v3.2.2.5080] System.UnauthorizedAccessException:
拒绝访问路径“/media/hdd2/Filmek/Friends The Reunion (2021)/Friends.the.Reunion.2021...mkv”。
编辑
的输出getfacl /media/hdd2/Filmek
为:
getfacl: Removing leading '/' from absolute path names
# file: media/hdd2/Filmek
# owner: htpc # group: htpc
# flags: -s- user::rwx group::rwx group:plex:rwx mask::rwx other::r-x
输出为getfacl /media/hdd2/Filmek/Friends\ The\ Reunion\ (2021)/
:
getfacl: Removing leading '/' from absolute path names
# file: media/hdd2/Filmek/Friends The Reunion (2021)/
# owner: htpc
# group: htpc
# flags: -s- user::rwx group::rwx other::r-x
输出为getfacl /media/torrent/Downloads/incomplete/Radarr/Friends.the.Reunion.2021.1080p.HMAX.WEB-DL.DD5.1.H.264.HUN.ENG-PTHD/Friends.the.Reunion.2021.1080p.HMAX.WEB-DL.DD5.1.H.264.HUN.ENG-PTHD.mkv
:
getfacl: Removing leading '/' from absolute path names
# file: media/torrent/Downloads/incomplete/Radarr/Friends.the.Reunion.2021.1080p.HMAX.WEB-DL.DD5.1.H.264.HUN.ENG-PTHD/Friends.the.Reunion.2021.1080p.HMAX.WEB-DL.DD5.1.H.264.HUN.ENG-PTHD.mkv
# owner: debian-transmission
# group: htpc user::rw- group::r-- other::r--