Transmission, unable to delete file within CIFS share

Status
Not open for further replies.

Rob Cook

Cadet
Joined
Sep 28, 2013
Messages
2
I've been searching the forums for hours now and I keep running into dead threads or roadblocks.

I have Transmission setup and working, I can download a torrent but I can't gain permissions without using the shell to set them so that I can delete the file from my CIFS share. All other files in the share work correctly.

I think that if I could set my umask to '0' I would be set however vi won't go into insert mode from the shell even though I've managed to set the perms on settings.json to 777 (the file does have a * at the end of it however). Specifically I can get into insert mode but I cant delete the '18' entry and replace it with '0'.

Suggestions?
 

HolyK

Ninja Turtle
Moderator
Joined
May 26, 2011
Messages
654
Set umask of the transmission user to "0" :]

"vi" following file:
/<transmission_path>/pbi/transmission-amd64/etc/transmission/home/settings.json

and set "umask" to "0"
"umask": 0,

Save and restart Transmission service.

All new downloads will have 777 :]
 

Rob Cook

Cadet
Joined
Sep 28, 2013
Messages
2
I understand how to edit the file my issue is that I can't as in the system won't let me

Code:
                         
[root@freenas ~]# jexec 3 /bin/tcsh                                           
root@bit_1:/ # cd /usr/pbi/transmission-amd64/etc/transmission/home/           
root@bit_1:/usr/pbi/transmission-amd64/etc/transmission/home # ls             
Downloads      resume          stats.json                                     
blocklists      settings.json  torrents                                       
root@bit_1:/usr/pbi/transmission-amd64/etc/transmission/home # ll             
total 119                                                                     
drwxrwxrwx  2 1002          1002    2 Sep 28 11:30 Downloads/                 
drwxrwxrwx  2 1002          1002    2 Sep 28 11:31 blocklists/               
drwxrwxrwx  2 1002          1002    2 Sep 28 12:49 resume/                   
-rw-------  1 transmission  1002  2328 Sep 28 13:46 settings.json             
-rw-------  1 transmission  1002  143 Sep 28 12:54 stats.json                 
drwxrwxrwx  2 1002          1002    2 Sep 28 12:49 torrents/                 
root@bit_1:/usr/pbi/transmission-amd64/etc/transmission/home #     


So the settings.json file has 600 perms. I can change that to 777 perms but I still can't edit the file as in when I 'vi settings.json' I am UNABLE to make changes even after entering into insert mode. I can't delete/edit/change the file. Do I need to also chgrp on settings.json?

Suggestions?
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I think you need to stop the service before you do any editing.
 

HolyK

Ninja Turtle
Moderator
Joined
May 26, 2011
Messages
654
Don't go inside jail via jexec. Just edit it directly from the host system under root. And yes, the service might need to be stopped before editing. I am not sure if i had it stopped when i was doing this, i don't remember :]
 
Status
Not open for further replies.
Top