[SOLVED] Permissions of downloaded files (daemon 2.22)

Ask for help and report issues with the GTK+ version of Transmission
Locked
ma huang
Posts: 2
Joined: Sun May 22, 2011 4:05 pm

[SOLVED] Permissions of downloaded files (daemon 2.22)

Post 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...
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: Permissions of downloaded files (transmission-daemon 2.2

Post 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
ma huang
Posts: 2
Joined: Sun May 22, 2011 4:05 pm

Re: Permissions of downloaded files (transmission-daemon 2.2

Post by ma huang »

It works!!! thanks!!!
Locked