Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Mar 20, 2016 · 2 comments
Open

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

ghost opened this issue Mar 20, 2016 · 2 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Mar 20, 2016

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.

@pyroscope
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant