This depends. In any case you can, for example
1) Move ruTorrents user profiles outside www root (see variable $profilePath in the conf/conf.php)
2) Move rtorrent and www users to the same group. And change directory permissions to 0770
moved it outside www updated path on conf.php and changed $profileMask = 0770;
added nihim and www-data to the group rtor and did:
Quote
sudo chown -R www-data:rtor /var/share
sudo chmod -R 770 /var/share
sudo chmod g+s /var/share
-the same for /var/www/rutorrent
also set on rtorrent system.umask.set = 007 to match it.
but i get:
Quote
06.12.2012 23:07:55] Webserver user doesn't have read/write/execute access to the torrents directory. You cannot add torrents via ruTorrent. (/var/share/users/nihim/torrents)
[06.12.2012 23:07:55] Webserver user doesn't have read/write/execute access to the settings directory. ruTorrent settings cannot be saved. (/var/share/users/nihim/settings)
[06.12.2012 23:07:55] rTorrent user must have read/execute access to the torrents directory. You cannot add torrents via ruTorrent. (/var/share/users/nihim/torrents)
[06.12.2012 23:07:55] rTorrent user must have read/write/execute access to the settings directory. (/var/share/users/nihim/settings)
[07.12.2012 00:00:39] rTorrent user must have read/execute access to the file ./test.sh (/var/www/rutorrent/php/test.sh)
[07.12.2012 00:00:39] rss: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/rss/update.php).
[07.12.2012 00:00:39] rss: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/rss/rss.php).
[07.12.2012 00:00:39] rss: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/rss/conf.php).
[07.12.2012 00:00:39] history: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/history/update.php).
[07.12.2012 00:00:39] history: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/history/history.php).
[07.12.2012 00:00:39] ratio: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/ratio/update.php).
[07.12.2012 00:00:39] ratio: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/ratio/ratio.php).
[07.12.2012 00:00:39] ratio: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/ratio/conf.php).
[07.12.2012 00:00:39] scheduler: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/scheduler/update.php).
[07.12.2012 00:00:39] scheduler: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/scheduler/scheduler.php).
[07.12.2012 00:00:39] scheduler: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/scheduler/conf.php).
[07.12.2012 00:00:39] autotools: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/autotools/move.php).
[07.12.2012 00:00:39] autotools: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/autotools/label.php).
[07.12.2012 00:00:39] autotools: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/autotools/watch.php).
[07.12.2012 00:00:39] autotools: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/autotools/autotools.php).
[07.12.2012 00:00:39] autotools: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/autotools/util_rt.php).
[07.12.2012 00:00:39] autotools: Plugin will not work. rTorrent user must have read access to the file (/var/www/rutorrent/plugins/autotools/conf.php).
[07.12.2012 00:00:39] unpack: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/unpack/unall_dir.sh).
[07.12.2012 00:00:39] unpack: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/unpack/unrar_dir.sh).
[07.12.2012 00:00:39] unpack: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/unpack/unrar_file.sh).
[07.12.2012 00:00:39] unpack: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/unpack/unzip_dir.sh).
[07.12.2012 00:00:39] unpack: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/unpack/unzip_file.sh).
[07.12.2012 00:00:39] create: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/create/buildtorrent.sh).
[07.12.2012 00:00:39] create: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/create/createtorrent.sh).
[07.12.2012 00:00:39] create: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/create/inner.sh).
[07.12.2012 00:00:39] create: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/create/mktorrent.sh).
[07.12.2012 00:00:39] create: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/create/transmissioncli.sh).
[07.12.2012 00:00:39] erasedata: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/erasedata/cat.sh).
[07.12.2012 00:00:39] erasedata: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/erasedata/fin.sh).
[07.12.2012 00:00:39] extratio: Plugin will not work. It requires plugin(s) ratio
[07.12.2012 00:00:39] rssurlrewrite: Plugin will not work. It requires plugin(s) rss
[07.12.2012 00:00:39] rTorrent user can't access 'stat' program. Some functionality will be unavailable.
[07.12.2012 00:00:39] rss: Plugin will not work. rTorrent user can't access external program (php).
[07.12.2012 00:00:39] history: Plugin will not work. rTorrent user can't access external program (php).
[07.12.2012 00:00:39] scheduler: Plugin will not work. rTorrent user can't access external program (php).
[07.12.2012 00:00:39] autotools: Plugin will not work. rTorrent user can't access external program (php).
[07.12.2012 00:00:39] unpack: Plugin will not work. rTorrent user can't access external program (php).
[07.12.2012 00:00:39] create: Plugin will not work. rTorrent user can't access external program (php).
[07.12.2012 00:00:39] _task: Some functionality will be unavailable. rTorrent user can't access external program (pgrep).
[07.12.2012 00:00:41] DataDir plugin: rTorrent user can't access php interpreter. Plugin will not work.
also somehow on a lot of plugins permissions are 710 and when i change them, webserver changes them back?
i don't understand how it can't access them, with those permissions, if i go to /var/share as user nihim and do mkdir test, it works so if i can rtorrent that's started by me (nihim) should too right?
Now i know i could go back to the way they are but want to make this work, it got me interested because it's weird, ofc only if you can offer some help