Sonarr version (exact version): 2.0.0.5163 Mono version (if Sonarr is not running on Windows): 5.10.1.47 OS: Unraid docker Description of issue:
When sonarr downloads new (upgraded) files, I have it set to move the old file to recycling bin so I can go through them manually later and confirm an upgrade in file quality.
However, I cant seem to delete the files from my recycling bin, even though I have my permissions for both file and folder set to 0777
The error says “You require permission from Unix User\Nobody to make changes to this folder”
The folder itself (_trash) is set to: drwxrwxrwx 1 simon users
Whereas the folders inside _trash are: drwxr-xr-x 1 nobody users
Im not sure why theyre different, or how to make the folders inside _trash deletable
I also just looked at my Radarr, which I believe is based on Sonarr. The files inside the Radarr recycle bin are -rw-rw-rw- 1 simon users and they are deletable
so im not sure why sonarr is acting differently when the permissions settings across the 2 apps are the same
Sonarr doesn’t set permissions on files/folders when deleting, you may be able to force the folder to inherit from their parent.
Not sure if the files inside the folders in Recycle bin are affected the same way, but recursively setting permissions will fix that.
You can use chown recursively (-R) to change the owner and delete them, you’ll need to run it as root.
You may also need to configure your container and to run Sonarr under your user, such as https://hub.docker.com/r/linuxserver/sonarr/ explains for that container (not sure if the container you’re using is the same).
Im guessing permissions are set when sonarr/radarr import the files?
Im looking through some random TV/movie directories and it seems sonarr has set various permissions:
directories are set drwxrwxrwx 1 nobody users
videos files are drwxrwxrwx 1 nobody users
and meta files (nfo, subtitles) are -rw-r--r-- 1 daemon daemon (although these are probably set when Emby grabbed them)
is nobody/users the typical/correct user and group?
In sonarr settings, theres a permission section for setting chown user and group, would setting those fields to my username have the same effect as running chown -R on the recycle directory?