Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
teamspeak2-server >>> start as different user ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
romhelfen
n00b
n00b


Joined: 21 Nov 2004
Posts: 10
Location: Germany

PostPosted: Fri Feb 11, 2005 7:23 pm    Post subject: teamspeak2-server >>> start as different user ? Reply with quote

Hello,

I emerged teamspeak 2 and so far, so good, both client and server are working fine.

BUT: I read in different tutorials that you should not start the server as user root (for security reasons). Portage added the following user:

[teamspeak2:x:101:100:added by portage for teamspeak2-server-bin:/dev/null:/bin/false]

So far I started the server as user root

[/etc/init.d/teamspeak2-server start]

So my question is:
How do I start the teamspeak2-server as user teamspeak2 (see above) ? There must be a reason why portage added this user.

Kind regards,
romhelfen
Back to top
View user's profile Send private message
exklusve
Apprentice
Apprentice


Joined: 23 Aug 2002
Posts: 270
Location: currently ~/

PostPosted: Fri Feb 11, 2005 7:26 pm    Post subject: Reply with quote

Have you checked out the config files in /etc/conf.d ?
I'm not sure what to suggest, i just execute the binary from my home directory when i want to run TS on my server.
Maybe post your config files?
_________________
eXklusve

You do know that no one gives a shit about your system spec's right?
Back to top
View user's profile Send private message
romhelfen
n00b
n00b


Joined: 21 Nov 2004
Posts: 10
Location: Germany

PostPosted: Fri Feb 11, 2005 7:39 pm    Post subject: Reply with quote

@eXklusve

Which binary do you execute from your HOME? As listed in the init-script TS-server needs a lot of parameters:

start() {
ebegin "Starting TeamSpeak Server"
start-stop-daemon --start --quiet --chuid teamspeak2 \
--exec /opt/teamspeak2-server/server_linux -- \
-db=/var/lib/teamspeak2-server/server.dbs \
-ini=/var/lib/teamspeak2-server/server.ini \
-log=/var/log/teamspeak2-server/server.log \
-pid=/var/run/teamspeak2-server/server.pid \
-sql=/opt/teamspeak2-server/sql/ \
-tcpquerydocs=/opt/teamspeak2-server/tcpquerydocs \
-httpdocs=/opt/teamspeak2-server/http/ &>/dev/null
eend $?
}

In my /etc/conf.d there is no file related to TS

romhelfen[/quote][/list]
Back to top
View user's profile Send private message
romhelfen
n00b
n00b


Joined: 21 Nov 2004
Posts: 10
Location: Germany

PostPosted: Fri Feb 11, 2005 9:28 pm    Post subject: SOLVED Reply with quote

Hello,

my problem is solved as there is no problem at all!

After starting the TS-server with

/etc/init.d/teamspeak2-server -start

and

ps aux | grep server_linux

I noticed that the related processes are all owned by user teamspeak2. So it seems that the user-change is managed by the binary server_linux.

romhelfen
Back to top
View user's profile Send private message
jannis
Guru
Guru


Joined: 05 Dec 2004
Posts: 340
Location: Germany / Bavaria / Aschaffenburg

PostPosted: Fri May 27, 2005 9:39 am    Post subject: Reply with quote

The init-script changes the suid as defined here:
Code:
--chuid teamspeak2
in /etc/init.d/teamspeak2-server
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum