Trying to change qbittorrent user runs as to media

Well, after resolving a jail creation issue, I decided to move from Transmission to Qbittorrent. Suffice it to say it’s been a long road starting with discovering there were two packages qbittorrent and qbittorand-nox. after that was sorted i find the default login had been abandoned in favor of one being generated. Where is it located? Only info I found was for Docker.

But I digress/whine

My current task is to change the user qbittorrent runs as to media in order to keep functionality the same across all the various jails accessing the media. media user and group have been added to the jail with uid and gid of 8675309. I’ve done this very thing repeatedly but cannot find reference to the command and my notes which helped a great deal do not include that.

Thanks and Happy New Year

In the jail’s /etc/rc.conf file, add these lines under qbittorrent_enable="YES":

qbittorrent_user=media
qbittorrent_group=media

The caveat is that the ownership of the directory /var/db/qbittorrent will reset to qbittorrent:qbittorrent after every update of the package.

Thanks Winnie. I had already tried that but in trying to restart the service I was getting
service qbittorrent stop
Stopping qbittorrent.
kill: 7837: Operation not permitted
Commenting the lines restored opperation

In reading your caveat I thought that maybe the mentioned directory would also need permissions changed to media:media (I used winscp) but that did not result in any change.

Very greatfull for the help. I always invest many hours in reading so as not to be a bother.

Thanks winnie. After my last message I was too tired and called it a day. The next morning in setting out to have at it I found the access was working as media. I have no idea why unless things that were changed took some time to propagate.

So thanks for the tip, I have one more hurdle in that Radarr is showing “Remote download client qBittorrent places downloads in /media/downloads but this directory does not appear to exist. Likely missing or incorrect remote path mapping” But that’s for another topic. Best regards

1 Like