PDA

View Full Version : Starting TSS as non-root


Sidious
27-08-2002, 21:00
Hello All!

I just messed up with this thing:

I'm running Debian 3.0 (stable) on my box and just tried the tss my first time. It works very fine, so i wanted to start it every time the machine boots.

Of course, i don't want to be surprised by security holes, so i decided to run it as another user than root. But every time i try it, i get the following error:

Error stating daemon. Aborted

Could you please help me with that?

Here the details of my System:
Debian 3.0 (as mentioned above)
Kernel 2.4.18 without patches

wossName
27-08-2002, 21:46
Are all the file/directory permissions set up the way they should be ? Does it still start when you're root ?

Sidious
27-08-2002, 22:31
Yeah, of course...
i chmoded everything 755 and even chowned the whole program for the new user! And yeah, i didn't forget the directory itself! ;)

tenshinhan
29-08-2002, 00:31
I have the same Problem. Root-User works fine, but other user didnt work.

woutur
29-08-2002, 01:30
http://www.teamspeak.org/forums/showthread.php?s=&threadid=900

ScratchMonkey
29-08-2002, 02:30
Instead of the TS2 server, try launching /bin/echo as that user. Ie. try something simple before trying something complex.

tenshinhan
30-08-2002, 01:22
can you do an expample for that ?

ScratchMonkey
31-08-2002, 23:04
Take whatever script you use to start tss2 and replace the tss2 command line with:

/bin/echo Hello World

If it fails, then your script is wrong. If it works, then tss2 is set up wrong.

tenshinhan
01-09-2002, 20:49
@ Scractch Monkey

If i start TS2 with www-user in php-script, system post me "Starting TeamSpeak 2 Server Daemon 78 o" but it didnt start. If i do the same in ssh-ts2 starts correctly. But it didnt think its a php problem because other programs starts with php.

ScratchMonkey
03-09-2002, 04:29
What working directory is PHP starting tss2 in? It should be the directory containing httpdocs.

Try launching the server from a script that logs any console output, like this:

#!/bin/sh
# set this to where the tss2 server lives
TSS2PATH=/home/tss2
TSS2LOG=/tmp/tss2.log
# log the working directory
pwd > $TSS2LOG
# start server and save all output
$TSS2PATH/linux_server >> $TSS2LOG 2>>&1

(This is untested code, but should tell you what's going wrong.)

hescominsoon
10-06-2004, 20:20
Is there a way to use the ./ to start the server_linux process as a user(in my case tss) without having to use a script? I can do it if i log on as tss then go to the folder and ./server_linux that way. I need it to start that way from boot up..is a script the only way?