Multi user system, global .dat files

randac56

Member
May 25, 2018
915
0
16
Hello,

First I want to say thank you for a very nice system!

We run a multiuser seedbox and have a problem with the ratio addon, is there a way to change the settings to global instead of per user?

I have tried to copy my ration.dat to /share/settings but it seems to only work if I copy it to all users share/users/*/settings/. Id like the settings those with "canChangeOptions" shall be global and the same.

Hope someone can shine some light on this, I cant seem to figure out how it works.

Thank you!
 

peshua19

Member
May 25, 2018
897
0
16
You can try changing to the path in ratio.php but not sure it will work but worth a try.

Code:
public $hash = "ratio.dat";
Code:
public $hash = "/path/to/ratio.dat";
 

lisas4567

Member
May 25, 2018
773
0
16
youcan also set per user settings on a plugin by creating conf files for each user in the conf/users/USERNAME/ directory.


so if you need to set different plugins/ratio/conf.php you'd do something like:


create a directory for each user called plugins/ratio in thier conf/users/USERNAME file and add the conf.phop there


also, dont' forget to set each users .rtorrent.rc with something like:
Code:
execute = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php USERNAME &}

being sure to modify it with the proper info (php path, webroot location for rutorrent, and username for each user respectively.)


that will allow each user to launch each plugin at start of rtorrent.
 

randac56

Member
May 25, 2018
915
0
16
Thx for the replies!

It did not work to change the path its controlled elsewhere.

but adding

Code:
$forbidUserSettings = true;
To the plugins conf.php worked fine smiley.gif
 

Attachments