Transmission folder permissions

Status
Not open for further replies.

fyver

Dabbler
Joined
Apr 23, 2012
Messages
21
I have a little permissions problem with transmission.
I cannot delete any files from the download folder, it always says you need permission from unix user\40001.
I have not setup any user accounts on the freenas server and the server is running in esxi 5.0.

I know I had this error before and I managed to fix this but I can't remember how.

Does anyone have a solution?
 

riste

Explorer
Joined
Jul 20, 2012
Messages
52
How? I have the same problem :confused:
I had the same problem - but i fixed it

it is not pretty but it worked

go in to the shell via the gui

typ jls

check you id - mine was 2

then typ jexec "followed by your id" tcsh

then typ chmod -R 777 mnt

hope it works for you guys!
 

lummoz

Cadet
Joined
Aug 25, 2012
Messages
1
Better solution

While running chmod or chown will let you delete existing downloads the transmission-daemon will create new files that can't be deleted unless you modify the settings.

Start the web interface shell or SSH in to freenas

Find your settings.json, something like below:
<PluginJailPath>\Plugins\mnt\plugins\pbi\transmission-amd64\etc\transmission\home

Edit settings.json using vi or nano
Find the line that says:
"umask": 18,
Change it to:
"umask": 0,

Restart the Transmission service using the web interface (services -> plugins)

Now all new files will be globally writeable and can be deleted by anyone with access to your downloads directory
See this link for more info: https://trac.transmissionbt.com/wiki/EditConfigFiles
 

riste

Explorer
Joined
Jul 20, 2012
Messages
52
Got it to work!
However I had to reinstall the transmission plugin.
Umask 0 solves it then?!
Should this be a Sticky perhaps? Many have this issue in the forum!
Perhaps it should be mentioned in the documentation?
Could the umask thing be a GUI settings option?
 

burnduck

Cadet
Joined
Jun 25, 2011
Messages
7
Got it to work!
However I had to reinstall the transmission plugin.
Umask 0 solves it then?!
Should this be a Sticky perhaps? Many have this issue in the forum!
Perhaps it should be mentioned in the documentation?
Could the umask thing be a GUI settings option?

I have restarted transmission after adding umask value in the settings file, but I still can't delete folders created by transmission.
Am I missing anything?
 

riste

Explorer
Joined
Jul 20, 2012
Messages
52
I have restarted transmission after adding umask value in the settings file, but I still can't delete folders created by transmission.
Am I missing anything?

1. Only new files/folders will get the modifed umask settings...
2. hm did u add a value or did u change it?
3. have you tried restarting your freenas system?
4. i had to reinstall the plugin to get it to work!
 

Lucas Hoàng

Cadet
Joined
Sep 20, 2012
Messages
1
1. Only new files/folders will get the modifed umask settings...
2. hm did u add a value or did u change it?
3. have you tried restarting your freenas system?
4. i had to reinstall the plugin to get it to work!

Hi, I've tried both chmod and yours but I have something to ask.
1. If only new files/folders will get modified so how can I delete the old one?
2. I've change the value from 18 to 0, is that right?

Regards
 

riste

Explorer
Joined
Jul 20, 2012
Messages
52
Hi, I've tried both chmod and yours but I have something to ask.
1. If only new files/folders will get modified so how can I delete the old one?
2. I've change the value from 18 to 0, is that right?

Regards

1. chmod 777 should rewrite so you can delete the old files. Have you done this within the jail and as root? If you have try the samething outside the jail - i am asuming that you have mout points set up...
2. value sholud be 0 se this documentation - https://trac.transmissionbt.com/wiki/EditConfigFiles
 

burnduck

Cadet
Joined
Jun 25, 2011
Messages
7
1. Only new files/folders will get the modifed umask settings...
2. hm did u add a value or did u change it?
3. have you tried restarting your freenas system?
4. i had to reinstall the plugin to get it to work!

I've found two copies of settings.json, first one in (<PluginJailPath>\Plugins\mnt\plugins\pbi\transmiss ion-amd64\etc\transmission\home) and another one in the "Configuration" folder listed in the plugin settings.

I added a value "umask": 0 into the first .json file, and modified an existing 18 value to 0 in the second "Configuration" folder but neither worked. Everytime I turn on transmission it always chmod and chown the entire transmission Download folder to 755 for user 40001:40001.

What process did you take to reinstall the plugin? did you just "update" the plugin with the same pbi image?
 

riste

Explorer
Joined
Jul 20, 2012
Messages
52
I've found two copies of settings.json, first one in (<PluginJailPath>\Plugins\mnt\plugins\pbi\transmiss ion-amd64\etc\transmission\home) and another one in the "Configuration" folder listed in the plugin settings.

I added a value "umask": 0 into the first .json file, and modified an existing 18 value to 0 in the second "Configuration" folder but neither worked. Everytime I turn on transmission it always chmod and chown the entire transmission Download folder to 755 for user 40001:40001.

What process did you take to reinstall the plugin? did you just "update" the plugin with the same pbi image?

i only modifed the file within the pluginjailpath!

i reinstalled everything. Latest jail and plugin fresh mout points!
 

mhs

Cadet
Joined
Jun 2, 2013
Messages
1
I am having the same problem mentioned. I am running NAS4free and have no programming background. However, I'm eager to learn. Would anyone be willing to walk me through the steps you used to be able to delete files on the server? Thanks.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You need to go to the NAS4Free forums and ask them how to help you.
 
Status
Not open for further replies.
Top