Can't start service as non-root

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
rakem
Newbie
Newbie
Posts: 1
Joined: August 26th, 2015, 8:38 am

Can't start service as non-root

Post by rakem »

I'm trying to run sabnzdb as a non-root user but it the service fails to start when it is configured this way.

Code: Select all

me@storage:~$ sudo service sabnzbdplus start
 * Starting SABnzbd+ binary newsgrabber                                                                                                         [fail]
me@storage:~$ service sabnzbdplus start
 * Starting SABnzbd+ binary newsgrabber                                                                                                         [fail]
config file looks like this:

Code: Select all

@storage:~$ cat /etc/default/sabnzbdplus
# This file is sourced by /etc/init.d/sabnzbdplus
#
# When SABnzbd+ is started using the init script, the
# --daemon option is always used, and the program is
# started under the account of $USER, as set below.
#
# Each setting is marked either "required" or "optional";
# leaving any required setting unconfigured will cause
# the service to not start.

# [required] user or uid of account to run the program as:
USER=me

# [optional] full path to the configuration file of your choice;
#            otherwise, the default location (in $USER's home
#            directory) is used:
CONFIG=

# [optional] hostname/ip and port number to listen on:
HOST=127.0.0.1
PORT=

# [optional] extra command line options, if any:
EXTRAOPTS=
I have full sudo permissions, so not sure why its not working.
I can run 'sabnzbdplus' from my account and the program starts, but just not as a service... any thoughts?

The problem is, when sabnzb downloads stuff it creates folders using the root account. I also use sonarr to organise stuff, which runs as a non-root user and it can't access the folders that sabnzb is creating under root
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Can't start service as non-root

Post by shypike »

I cannot see which port you are using, but any port below 1024 requires root privileges.
Post Reply