Changing which user qBittorrent runs as?

indivision

Guru
Joined
Jan 4, 2013
Messages
806
I am able to set up permissions on mounted drives that plugins/jails can access (by using common groups, etc.).

However, with the qBittorrent plugin, it appears to be running as root. So, when qBittorrent moves a downloaded file from the incomplete to complete folder it sets those files permissions to the jails' local root user.

I would like for those files to belong to the user "media" instead.

I have actually set this up before. But, it has been a while and I forget the steps. I think that I need to make qBittorrent run as "media" for this. I have tried entering (into /etc/rc.conf):

Code:
qbittorrent_user="media"


But, that doesn't seem to have any effect.

Any help would be greatly appreciated.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
You might want to look at your rc.d script in the jail and see what variables it expects.

If all is standard, you will find it under /usr/local/etc/rc.d/ (probably named transmission)

If it isn't there, it may be in /etc/rc.d instead.
 

indivision

Guru
Joined
Jan 4, 2013
Messages
806
Thank you.

The script is in the first path you list. However, it already shows the user as qbittorrent there. Despite that, running "top" shows it running by root.

I did find an alternative workaround though. qbittorrent has a built in feature in the GUI to run a program after a file is downloaded. So, I used that to apply some permissions commands and that works.
 
Top