[Solved] Deluge - how to set up permissions

Hello everyone.
I’m trying to set a umask for deluge so that the sonarr can automatically pick up the downloaded files. All folders created by deluge have 751 rights, for the user: deluge and group: dietpi.
I could not find any config files that are talked about in the deluge forums.
Here is what I have already tried without any result:

  • edit the MASK parameter in the script /etc/init.d/deluged to the 002
  • edit the Umask parameter in the /etc/systemd/system/deluged.service to the 002

If i set global umask to 002 it works. But i think it isn’t right solution.

So the question is how to set a umask for deluge properly so that all the folders created by it have permissions 775? Or what other ways can this be achieved?

  • DietPi v6.19.6 | Native PC (x86_64)

This is a stupid mistake, I should have written UMask instead of Umask in “/etc/systemd/system/deluged.service”.
Shame on me.

Ah great, thx for reporting back solution. I was already searching the web and as well found the info that this need to be set in /etc/systemd/system/deluged.service.

We will apply 775 permissions/002 umask with v6.20 by default for deluge.

Opened PR on GitHub: https://github.com/Fourdee/DietPi/issues/2339