Hello, how can I log in the daemon as a different user?
A little background..
I have a ubuntu server that hosts my torrents and have been using qBittorrent for a long time now but I have had a support issue for 2 weeks now unanswered so I figured I would change.
Doing some reasearch I seen Deluge as a good one and I setup the server from HERE with webui and that had been working great.
I then wanted to use the plugins but some are not compatible with the webui so I looked upon installing the thin client on my ubuntu laptop.
I found THIS guide but found it very patchy and struggled with it so then I found THIS guide and between the lot I seemed to have webui working and also the thin client with remote access.
It appeared to be running of my main ubuntu user but when I rebooted the server the daemon seemed to log in to the deluge user and I cannot login to webui or the thin client.
I might be way off the mark with what I think is going on if I am please tell me.
Setup issues
Re: Setup issues
####UPDATE####
It seems that every time I reboot the server the settings do not stay. I managed to log in by killing all processes and then runnung
then when I get a new line I ran
When I then logged on the password was back to default so I was prompted to change that and then all my settings previously like proxy etc we're all blank but I did have one test torrent in there from before I rebooted last.
Can anyone shed some light?
Kind regards
It seems that every time I reboot the server the settings do not stay. I managed to log in by killing all processes and then runnung
Code: Select all
deluged
Code: Select all
deluged-web
Can anyone shed some light?
Kind regards
Re: Setup issues
Can you be clearer about the issues you are trying to resolve.
If the settings have been reset, it is likely a permission issue for the config location. Enable logging to check for errors.
If the settings have been reset, it is likely a permission issue for the config location. Enable logging to check for errors.
Re: Setup issues
Thank you for your reply, I have been doing some more tests and this is what the issue is in more detail.Cas wrote:Can you be clearer about the issues you are trying to resolve.
If the settings have been reset, it is likely a permission issue for the config location. Enable logging to check for errors.
I have found that the settings are fine
What seems to be happening simply is every reboot the daemon logs in to the "deluge" system user
What I want is for the daemon to log in to my Ubuntu user.
To accomplish this after a reboot I have to run these commands
Code: Select all
ps aux | grep -i deluge
Code: Select all
sudo kill (process number)
Code: Select all
deluged
Code: Select all
deluge-console
Code: Select all
systemctl restart deluge-web
I assume that this is a simple fix and I am missing the obvious I am pretty sure this is user error and not software error.
Thanks again for the reply, hope this is now clearer
Kind regards
Re: Setup issues
So you are using systemd services but don't want to run as root or deluge but your own logged in user? Edit the
/etc/systemd/system/deluged.service
and /etc/systemd/system/deluge-web.service
to replace the user/group with your own.Re: Setup issues
As easy as that, thank you very much