Daemonusername option not working

Get help, report and discuss bugs.
Post Reply
gapone
Posts: 17
Joined: 23 Apr 2017, 15:49

Daemonusername option not working

Post by gapone » 01 Jan 2019, 08:41

I have debian7 with vpn split tunneling and it has been running great until now. I'm unable to run nzbget as vpn user on boot. Only way to run it with that user is to login with the user and start nzbget. Something has happened with the daemonusername option because it doesn't work anymore. Please help me...

hugbug
Developer & Admin
Posts: 7331
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Daemonusername option not working

Post by hugbug » 01 Jan 2019, 11:58

Does it work when started from terminal (not from boot)?

gapone
Posts: 17
Joined: 23 Apr 2017, 15:49

Re: Daemonusername option not working

Post by gapone » 01 Jan 2019, 14:11

Only if I login with the vpn user

hugbug
Developer & Admin
Posts: 7331
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Daemonusername option not working

Post by hugbug » 01 Jan 2019, 14:54

As documented Daemonusername has effect only when the program is started from root account. My question was if you start nzbget (as daemon) from terminal as root - does the option work?

gapone
Posts: 17
Joined: 23 Apr 2017, 15:49

Re: Daemonusername option not working

Post by gapone » 02 Jan 2019, 14:43

When started as root in daemon mode, it runs it as root user. Confirmed by Nzbget.lock file which is created by root user.

hugbug
Developer & Admin
Posts: 7331
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Daemonusername option not working

Post by hugbug » 03 Jan 2019, 00:32

gapone wrote:
02 Jan 2019, 14:43
Confirmed by Nzbget.lock file which is created by root user.
Well, the lock-file is created before changing user.

Better check user of nzbget-process with "ps" or "top" .

gapone
Posts: 17
Joined: 23 Apr 2017, 15:49

Re: Daemonusername option not working

Post by gapone » 03 Jan 2019, 13:47

Running as root with daemonusername=vpn.

hugbug
Developer & Admin
Posts: 7331
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Daemonusername option not working

Post by hugbug » 03 Jan 2019, 17:22

Now you can easily test if user switch is working without rebooting the system.

For some reason it doesn't work. Maybe the user name is incorrect? Does the user exist?

Check the option in nzbget.conf to ensure there are no special characters somewhere in the username. Also check if there are multiple entries of option daemonusername in the config file.

gapone
Posts: 17
Joined: 23 Apr 2017, 15:49

Re: Daemonusername option not working

Post by gapone » 04 Jan 2019, 14:36

Username is correct "vpn" and there is vpn user in the system. No special characters and no multiple entries in the config file. It has been working about 14 months and I think it stopped working after v20.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests