[10:32:55]
<Paprika> Recently noticed that when Radarr/Sonarr creates movies/shows in designated root folders, Bazarr has permission issues adding subtitles. Most likely because created movies/shows belong to radarr/sonarr group and not multimedia group. How can this be solved?
Error log:
```
Traceback (most recent call last):
File "/var/www/bazarr/bazarr/subtitles/manual.py", line 183, in manual_download_subtitle
saved_subtitles = save_subtitles(video.original_path, [subtitle],
File "/var/www/bazarr/bazarr/../custom_libs/subliminal_patch/core.py", line 1232, in save_subtitles
with open(subtitle_path, \'wb\') as f:
PermissionError: [Errno 13] Permission denied: \'/home/[redacted]/Multimedia/Movies/[redactedmovie]/[redactedmovie].srt\
```
[10:41:19]
<Paprika> Alright, so I suspect it might have to do something with effective rights. Even though multimedia group has rwx rights in the directory and subdirectories, the created folders/files by Radarr/Sonarr have effective r-x rights for the multimedia group. Not sure how to tackle this for now.
```
# file: [redactedmoviedir]/
# owner: [redacted]
# group: radarr
user::rwx
group::rwx #effective:r-x
group:multimedia:rwx #effective:r-x
mask::r-x
other::r-x
default:user::rwx
default:group::rwx
default:group:multimedia:rwx
default:mask::rwx
default:other::r-x
```
[10:41:39]
<Paprika> Alright, so I suspect it might have to do something with effective rights. Even though multimedia group has rwx rights in the directory and subdirectories, the created folders/files by Radarr/Sonarr have effective r-x rights for the multimedia group due to the applied mask. Not sure how to tackle this for now.
```
# file: [redactedmoviedir]/
# owner: [redacted]
# group: radarr
user::rwx
group::rwx #effective:r-x
group:multimedia:rwx #effective:r-x
mask::r-x
other::r-x
default:user::rwx
default:group::rwx
default:group:multimedia:rwx
default:mask::rwx
default:other::r-x
```
[10:44:47]
<Paprika> It may also be my own issue, perhaps I shouldn't be using the Multimedia folders for Sonarr/Radarr in general? Has worked perfectly fine over the years, just Bazarr seems to have an issue adding subtitles.
[10:59:33]
<Paprika> Of course this can be solved by using `setfacl -Rm m::rwx /path/to/dir`, but is that the only proper solution.