Permissions on Recycle Bin folders

Sonarr version (exact version): 3.0.3.731-ls186 by linuxserver.io
Mono version (if Sonarr is not running on Windows): 5.20.1.34
OS: Unraid 6.8.3
Debug logs: Trace: https://pastebin.com/YSre7e7L
Description of issue: When a file is deleted and sent to the configured Recycle Bin (Recycle Bin/TV), the folder created for the series within the recycle bin is set to permissions 0744.

Recycle Bin (0777)/TV (0777)/Series (0744)/Season (0744)/File (0777).

I then deleted the TV Folder within the Recycle Bin and let Sonarr recreate it when deleting a test file, and the new Recycle Bin/TV folder has permission 0744.

My issue is that when accessing my server via SMB, I’m unable to delete the folders created by Sonarr in the Recycle Bin.

Sonarr doesn’t set permissions on items in the recycling bin, whatever permissions the files/folders are being applied outside of Sonarr.

Interesting. I think it has something to do with the Linuxserver docker container. I switched over to a container built by binhex and it doesn’t have the issue.