Hi all,
What I am trying to achieve on my Raspberry Pi 4 with DietPi:
-
- Sonarr automatically queues up torrents for desired TV shows
- Sonarr automatically queues up torrents for desired TV shows
-
- Transmission downloads the TV shows to a directory on a network share (NTFS, Samba)
- Transmission downloads the TV shows to a directory on a network share (NTFS, Samba)
-
- Sonarr renames and moves the downloaded TV shows to a different directory on the same network share
- Sonarr renames and moves the downloaded TV shows to a different directory on the same network share
-
- Sonarr triggers Kodi to scrape the episode
So far 1-2 are working really well. I mounted the network storage with dietpi-drive_manager.
However I am stuck on 3. Sonarr keeps displaying errors like this in the logs:
Couldn't import episode /mnt/Media/Download-complete/Family.Guy.S18E04.1080p.WEB.x264-TBS[rarbg]/family.guy.s18e04.1080p.web.x264-tbs.mkv: Access to the path is denied.
My research suggests this is because the Samba share has been assigned write permissions only for the user that mounted it (dietpi) because this is how Linux handles user access to external NTFS storage. So I’m thinking the answer is just to have Sonarr run as the dietpi user. But how do I do this?
It’s notable that Transmission has no trouble writing to the drive. It doesn’t seem to have a dedicated user so I’m assuming it launches as the dietpi user.