Umask in config file not working

General support for problems installing or using Deluge
Post Reply
giuse85

Umask in config file not working

Post by giuse85 »

Hi, I have deluged running on Ubuntu 14.04 on its own user "deluge" correctly working and downloading files.
Once a file is downloaded, I move it from my download folder to another to organize it.
To read these downloaded files I use Plex which needs Execute in the permissions for the file.

The problem is that all files downloaded have permissions set to 666 and requires me to chmod all files all the time, and however i set the umask files are always downloaded with 666 as permissions.
How do I go to set downloaded files (and not just the folders) to be downloaded with rx permissions and not just rw?

This is my config:

Code: Select all

start on filesystem and static-network-up
stop on runlevel [016]

respawn
respawn limit 5 30

env uid=deluge
env gid=deluge
env umask=011

exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluged -- -d
Thanks for any help!
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Umask in config file not working

Post by Cas »

Search for umask and executable bit and you will find the reason. I am not sure why Plex would need the executable bit if they are media files, likely there is another reason why they are not working.
Post Reply