Page 1 of 1

Umask in config file not working

Posted: Thu Jul 31, 2014 2:03 pm
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!

Re: Umask in config file not working

Posted: Thu Jul 31, 2014 4:17 pm
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.