www-data +x sessions directory error

saroos1

Member
May 25, 2018
718
0
16
Code:
[27.03.2013 18:22:29] autotools: Some functionality will be unavailable. Webserver user must have execute access to the rtorrent session directory (/media/store1/torrents/session/).

Code:
x@x:/media/store1/torrents$ ls -lha
total 268K
drwxrws--- 7 rtorrent users 4.0K Mar 27 16:46 .
drwxrwsrwx 11 root users 4.0K Mar 27 17:03 ..
drwxrws--- 4 rtorrent users 4.0K Mar 27 16:26 complete
drwxrws--- 4 rtorrent users 4.0K Mar 27 16:46 download
drwxrwsrwx 2 rtorrent users 244K Mar 27 18:21 session
drwxrws--- 2 rtorrent users 4.0K Mar 27 13:56 uploads
drwxrws--- 4 rtorrent users 4.0K Mar 27 16:25 watch

x@x:/media/store1/torrents$ groups www-data
www-data : www-data users


Any idea what the issue might be? www-data is in the users group, permissions set to 2770, all should be fine, no?
 

saroos1

Member
May 25, 2018
718
0
16
Quote :
No. For example, if /media/store1/torrents has drwx------.


Sorry I'm a little confused, is that no I'm doing something wrong or no you can't see any issue?

As you can see, /media/store1/torrents has drwxrws---.

Hope you can clarify.

Thanks peshua19
 

peshua19

Member
May 25, 2018
897
0
16
Sorry, i miss this.
Open file plugins/autotools/init.php and change line

if( !strlen($session) || !is_executable(addslash(rTorrentSettings::get()->session)))

to

if( !strlen($session) || !@file_exists(addslash(rTorrentSettings::get()->session).'.') )

Is now all OK?
 

saroos1

Member
May 25, 2018
718
0
16
Sadly this didn't fix my issue, but I've noticed you've since pushed it to svn anyhow.

I did resolve this initially, how I do not know. I'm back with the same problem as I've had to restore to an old backup.

Any ideas? I've tried figuring out how I fixed it last time but I'm now stuck.

Code:
root@kier:/media/store1/torrents# ls -lha
total 348K
drwxrws--- 9 rtorrent users 4.0K May 11 12:57 .
drwxrwsrwx 10 root users 4.0K Mar 29 13:05 ..
drwxrws--- 6 rtorrent users 4.0K Mar 30 07:50 360
drwxrws--- 4 rtorrent users 4.0K Mar 29 09:03 complete
drwxrws--- 4 rtorrent users 4.0K Mar 31 17:39 download
-rwxrwx--- 1 rtorrent users 4.0K Mar 29 08:12 ._.DS_Store
-rwxrwx--- 1 rtorrent users 13K Apr 3 21:17 .DS_Store
drwxrws--- 3 rtorrent users 4.0K Mar 31 18:57 other
drwxrwsrwx 2 rtorrent users 296K May 11 13:13 session
drwxrws--- 2 rtorrent users 4.0K Mar 27 13:56 uploads
drwxrws--- 4 rtorrent users 4.0K Mar 31 19:05 watch