Page 1 of 1

[SOLVED] Permissions of downloaded files (daemon 2.22)

Posted: Sun May 22, 2011 4:26 pm
by ma huang
Hi!
I use transmission-daemon 2.22 (12099).
And I need to set permissions of downloaded content to 750/440 (folder/file).
In conf file ~/.config/transmission-daemon/settings.json I find umask setting.
In which value it is necessary to set value of umask to get the needed permissions?
In my ~/.bashrc I use umask 077

sorry for my english...

Re: Permissions of downloaded files (transmission-daemon 2.2

Posted: Mon May 23, 2011 6:42 am
by gunzip
a umask of 027 (standard octal notation) will give folder 750 permissions. but as stated in https://trac.transmissionbt.com/wiki/EditConfigFiles , settings.json only understands decimal, so you have to convert umask from octal to decimal.

so to achieve umask of 027 in settings.json you would enter:

"umask": 23,

because 23 decimal = 27 octal

Re: Permissions of downloaded files (transmission-daemon 2.2

Posted: Mon May 23, 2011 8:09 am
by ma huang
It works!!! thanks!!!