Avoid settings change

Discussion of Transmission that doesn't fit in the other categories
Post Reply
AlbEin
Posts: 4
Joined: Wed Jan 08, 2014 10:13 pm

Avoid settings change

Post by AlbEin »

Hi,

I would like to avoid settings be changed by user who use my Transmission daemon with web interface or GUI.
For example, freeze upload speed limit and directory downloads parameters.
Is it possible ?

(sorry for my English)
blacke4dawn
Posts: 552
Joined: Sun Dec 13, 2009 10:44 pm

Re: Avoid settings change

Post by blacke4dawn »

Disabling the ability to change it while it's running, no.
Only thing I know of is to remove write permissions on setting.json, but it only helps in "resetting" settings between restarts.

Where that one is depends on what flavor (GTK, daemon, cli) and OS you use, Here you can see the defaults, but most Linux distros change it for the daemon install.
AlbEin
Posts: 4
Joined: Wed Jan 08, 2014 10:13 pm

Re: Avoid settings change

Post by AlbEin »

Hi,

Thank you for your answer.
I tried change permissions on settings.json but it doesn't have effect on running daemon.
The only thing I see is to rewrite a new web interface on my own server.
JJTagy
Posts: 40
Joined: Sun Jul 29, 2012 3:15 am

Re: Avoid settings change

Post by JJTagy »

If you are strictly using the web interface, I would edit the web files to remove the settings button.
AlbEin
Posts: 4
Joined: Wed Jan 08, 2014 10:13 pm

Re: Avoid settings change

Post by AlbEin »

HI,

I thought about it but an advanced user could send RPC commands with his own javascripts to hack the settings !?
JJTagy
Posts: 40
Joined: Sun Jul 29, 2012 3:15 am

Re: Avoid settings change

Post by JJTagy »

If you have subversive users with that skill level, then you will need to intervene at application level. Remove the functions from RPC.
blacke4dawn
Posts: 552
Joined: Sun Dec 13, 2009 10:44 pm

Re: Avoid settings change

Post by blacke4dawn »

After some thought the best I can up with is to set authentication on the RPC and then build a webinterface that uses another database/method for authenticating users of Transmission.
AlbEin
Posts: 4
Joined: Wed Jan 08, 2014 10:13 pm

Re: Avoid settings change

Post by AlbEin »

Hi,

@JJTagy : Nice idea but i'm not sure i am able to do it.

@ blacke4dawn : It's what i started to do :-)
Post Reply