pimp-my-box icon indicating copy to clipboard operation
pimp-my-box copied to clipboard

/var/torrent/.scgi_local not accessible by www-data

Open ghost opened this issue 9 years ago • 2 comments

This breaks certain apps that uses /RPC2 such as transdroid.

Possible solution includes moving the .scgi_local somewhere else or changing the group owner for /home/rtorrent.

Currently I'm just using setfacl to give www-data access to that one socket file.

ghost avatar Mar 20 '16 04:03 ghost

Well, since rutorrent works, I guess it uses the socket directly. Try to add www-data to the rtorrent group, and restart (not reload) the web server.

pyroscope avatar Mar 20 '16 13:03 pyroscope

Proper solution:

  • a new rtxmlrpc group, with rtorrent, rutorrent, and www-data in it
  • /var/run/rtorrent directory owned by rtorrent.rtxmlrpc
  • socket at /var/run/rtorrent/scgi_local.sock owned by rtorrent.rtxmlrpc

pyroscope avatar Mar 20 '16 14:03 pyroscope