You are not logged in.

#1 2016-07-18 00:43:20

cata1yst
Member
Registered: 2014-11-29
Posts: 3

rTorrent/ruTorrent shared directory permission issues.

Hi all,

Hopefully this is in the correct forum.
Brought up a rtorrent + rutorrent server, everything should be installed correctly, but I ran into an issue with the temp directory for both rtorrent and rutorrent. If I do the following, I get r/w/x errors from the rutorrent log.

 
[17.07.2016 16:37:55] Webserver user doesn't have read/write/execute access to the tmp directory. ruTorrent will not work. (/home/oliver/.rtorrent.session/)
[17.07.2016 16:37:55] rTorrent user must have read/execute access to the tmp directory. ruTorrent will not work. (/home/oliver/.rtorrent.session/)

I did the following to create the directory. It is my understanding that I need to share this temp directory with my user and http (webserver user), via a group, which I created and named rutorrent.

[oliver@Server ~]$ mkdir .rtorrent.session
[oliver@Server ~]$ groups
wheel http oliver rutorrent

[oliver@Server ~]$ grep 'rutorrent' /etc/group
rutorrent:x:1001:oliver,http

[oliver@Server ~]$ chgrp rutorrent ~/.rtorrent.session/
[oliver@Server ~]$ ls -Al
total 44
-rw------- 1 oliver oliver    7142 Jul 17 16:07 .bash_history
-rw-r--r-- 1 oliver oliver      21 Jun 30 11:59 .bash_logout
-rw-r--r-- 1 oliver oliver      57 Jun 30 11:59 .bash_profile
-rw-r--r-- 1 oliver oliver     141 Jun 30 11:59 .bashrc
drwxr-xr-x 2 oliver oliver    4096 Jul 17 09:16 Downloads
-rwxr-xr-x 1 oliver oliver    2845 Jul 17 16:03 .rtorrent.rc
drwxr-xr-x 2 oliver rutorrent 4096 Jul 17 16:22 .rtorrent.session
drwxr-xr-x 2 oliver oliver    4096 Jul 16 17:15 Torrents
-rw------- 1 oliver oliver    4322 Jul 17 16:03 .viminfo
[oliver@Server ~]$ chmod g+rwx ~/.rtorrent.session/
[oliver@Server ~]$ getfacl ~/.rtorrent.session/
getfacl: Removing leading '/' from absolute path names
# file: home/oliver/.rtorrent.session/
# owner: oliver
# group: rutorrent
user::rwx
group::rwx
other::r-x

However if I create a directory in /tmp/rtorrent and chmod it to 777, everything works fine. Here's the printout of permissions doing so:

[oliver@Server ~]$ getfacl /tmp/rtorrent/
getfacl: Removing leading '/' from absolute path names
# file: tmp/rtorrent/
# owner: oliver
# group: oliver
user::rwx
group::rwx
other::rwx

Any suggestions? The only thing I can think of is that either it doesnt like the fact that i'm sharing within my home directory with the webserver user (http), or its the preleading dot in the directory.

Edit: made a ~/rtorrent instead of an ~/.rtorrent.session. No difference.

Offline

#2 2016-07-18 11:37:30

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: rTorrent/ruTorrent shared directory permission issues.

it doesnt like the fact that i'm sharing within my home directory with the webserver user (http)

Linux has very restricitve permisssions on home folders (and i agree completely with that settting) , just run ls -l /home to see them.


If the main purpose of the "temporary folder" is for webserver and rtorrent to communicate, i'd be inclined to use a (sub) folder where the webserver has full access anyway.
Maybe something like   /srv/http/used_by_rtorrent   ?
(assuming your webserver uses /srv/http to store stuff )


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2016-07-18 15:10:19

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: rTorrent/ruTorrent shared directory permission issues.

I also have an Arch rtorent+rutorrent server and encountered the same. Technically it's running Arch ARM - and I did some "mountal gymnastics" to avoid SD card usage - but I think my solution may still be helpful. I'll post the details when I get home if you don't find a solution before then.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#4 2016-07-24 15:57:08

Akimoge
Member
Registered: 2016-05-31
Posts: 2

Re: rTorrent/ruTorrent shared directory permission issues.

Try define specific user and group for rtorrent/rutorrent and change parmissions via chown.


Close the world | txen eht nepO

Offline

#5 2016-07-24 16:05:59

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,792

Re: rTorrent/ruTorrent shared directory permission issues.

Moving to Applications and Desktop Environments.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB