problems setting default user in linux

Need help? Post your questions here.

Moderator: moderators

problems setting default user in linux

Postby krayzk » Sun Mar 01, 2015 8:12 am

So this is essencially the same question as this one: http://forum.subsonic.org/forum/viewtopic.php?f=2&t=14637&p=64071&hilit=setting+user+to+not+root#p64071. but since that one was never answered I thought I would ask again. There are tutorials out there for linux users to change their default user for subsonic (defaults to root which less desireable) Every tutorial I found mentioned going to /etc/default/subsonic and 'changing' SUBSONIC_USER=root to SUBSONIC_USER=<mynewusername>. There were more instructions that went into this but this is the one where myself and this other fella seem to have gotten stuck. My version of /etc/default/subsonic did not contain the value SUBSONIC_USER to change. here is the entirety of the file:
Code: Select all
# This is the configuration file for the Subsonic service
# (/etc/init.d/subsonic)
#
# To change the startup parameters of Subsonic, modify
# the SUBSONIC_ARGS variable below.
#
# Type "subsonic --help" on the command line to read an
# explanation of the different options.
#
# For example, to specify that Subsonic should use port 80 (for http)
# and 443 (for https), and use a Java memory heap size of 120 MB, use
# the following:
#
# SUBSONIC_ARGS="--port=80 --https-port=443 --max-memory=120"

SUBSONIC_ARGS="--max-memory=100"
~                                                                               
~                                                                               

I attempted adding SUBSONIC_USER=subsonic and SUBSONIC_USER="subsonic" (a user that is both created and granted proper permissions) both before and after the SUBSONIC_ARGS line and still with every service restart and login I am getting the red 'Warning! The Subsonic process is running as the root user. Please consider to change this.'

Any help would be greatly appreciated.
krayzk
 
Posts: 2
Joined: Sun Mar 01, 2015 7:56 am

Re: problems setting default user in linux

Postby krayzk » Sun Mar 01, 2015 9:47 pm

So I'm beginning to think it might be the case that the root user warning on the getting started page is static and does not actually verify if the user was changed. Can anyone verify this? If so this is probably something that should be fixed.
krayzk
 
Posts: 2
Joined: Sun Mar 01, 2015 7:56 am

Re: problems setting default user in linux

Postby p4xel » Sun Mar 08, 2015 12:32 pm

What version of Subsonic are you running? What is your OS?
Post your startup script, it might require update/change (in Debian it is /etc/init.d/subsonic)
p4xel
 
Posts: 3
Joined: Sat Jun 07, 2014 11:24 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests