Mannekino
Patron
- Joined
- Nov 14, 2012
- Messages
- 332
I've been working on setting up Radarr and Jackett with Transmission yesterday and I got mostly everything working. I've run into some issues with changing the owner of the folder and files after a Torrent is completed and imported it into my "media" dataset.
To avoid being unnecessarily verbose I think I have everything pretty well setup with regard to my permissions but you need more information I can provide it. In the Radarr jail I mounted the dataset that contains my Transmission "completed downloads" folder and the dataset that contains my movies.
My movies folder is in a dataset that is also being shared through Samba and has a Windows ACL. I believe this prevents the command
When Radarr imports a completed movie from my Torrent client it does so with the
Here is how the permissions look of the folder that was just imported.
The user
Does anyone have a solution for this, without resorting to some sort of cron job to change the owner of the files and folders? I could run Radarr as
To avoid being unnecessarily verbose I think I have everything pretty well setup with regard to my permissions but you need more information I can provide it. In the Radarr jail I mounted the dataset that contains my Transmission "completed downloads" folder and the dataset that contains my movies.
My movies folder is in a dataset that is also being shared through Samba and has a Windows ACL. I believe this prevents the command
chmod
to run. For example when I manually run this command on a file or folder I get permission denied, both as root and as the user that is actually the owner of the file or folder. For example:Code:
root@freenas[/mnt/data/media/Entertainment/Movies]# chmod 770 <movie> chmod: <movie>: Operation not permitted
When Radarr imports a completed movie from my Torrent client it does so with the
radarr
user. Here is an example of an import with the permissions gone wrong.Code:
Unable to apply permissions to: /media/Movies/<movie>.mkv: Error setting file permissions: EPERM NzbDrone.Mono.Disk.LinuxPermissionsException: Error setting file permissions: EPERM at NzbDrone.Mono.Disk.DiskProvider.SetPermissions (System.String path, System.String mask) [0x0003d] in <47becc8372a140968eab920ae2856bf6>:0 at NzbDrone.Mono.Disk.DiskProvider.SetPermissions (System.String path, System.String mask, System.String user, System.String group) [0x00000] in <47becc8372a140968eab920ae2856bf6>:0 at NzbDrone.Core.MediaFiles.MediaFileAttributeService.SetMonoPermissions (System.String path, System.String permissions) [0x0002d] in <b938542dd9a14cfc824f9cd70d8df65b>:0
Here is how the permissions look of the folder that was just imported.
Code:
root@freenas[/mnt/data/media/Entertainment/Movies]# getfacl <movie> # file: <movie> # owner: 352 # group: <group_1> group:entertainment:r-x---a-R-c---:fd----I:allow group@:rwxpDdaARWcCo-:fd----I:allow owner@:rwxpDdaARWcCo-:fd----I:allow
The user
352
is the Radarr user. Now normally all the files in the movies folder are owned by user_1
and group_1
and I would like Radarr to change the user after it's done importing. This doesn't work as shown above. I believe this is due to Radarr trying to execute a chmod
. Now I don't actually need Radarr to do this but only change the owner of the folder and files it copied but I can't leave the fields for the permission octals blank.Does anyone have a solution for this, without resorting to some sort of cron job to change the owner of the files and folders? I could run Radarr as
user_1
but I rather not do that. I only want to change the owner and the command chown
does work properly.
Last edited: