ruTorrent saving files as root user

saroos1

Member
May 25, 2018
718
0
16
I'm not quite sure if this is a ruTorrent misconfiguration or rTorrent itself. I have the config file for rtorrent set up to use a specific user, however when I add a torrent through ruTorrent it then saves the file on the server as the root user rather than the user I specified in the rtorrent config. Is there somewhere else I need to force the username?

Thanks
 

simur612

Member
May 25, 2018
879
0
16
Data owner is the user who run rtorrent. If you run rtorrent with root, data owner will be root...
 

randac56

Member
May 25, 2018
915
0
16
you need to make sure rtorrent runs under the user you want.

How are you making rtorrent start? via cron or via a boot script?

If you used a boot script did you make sure to specify the user correctly? If you are unsure, show us the script
 

saroos1

Member
May 25, 2018
718
0
16
Thanks for the replies. It does seem to be running as root on the server...

root 5132 0.0 0.0 21536 392 ? Ss Dec01 0:00 SCREEN rtorrent
root 5133 0.0 2.1 82968 11232 pts/2 Ss+ Dec01 0:55 \_ rtorrent

I was using /etc/init.d/rtorrent to start the screen session, I assumed that having it set as the correct user within the rtorrent file would force the process to start as that specific user. I copied it to the user directory, did an su to the correct user and executed it from there. Seemed to do the trick smiley.gif
 

Attachments