View previous topic :: View next topic |
Author |
Message |
romhelfen n00b
Joined: 21 Nov 2004 Posts: 10 Location: Germany
|
Posted: Fri Feb 11, 2005 7:23 pm Post subject: teamspeak2-server >>> start as different user ? |
|
|
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 |
|
|
exklusve Apprentice
Joined: 23 Aug 2002 Posts: 270 Location: currently ~/
|
Posted: Fri Feb 11, 2005 7:26 pm Post subject: |
|
|
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 |
|
|
romhelfen n00b
Joined: 21 Nov 2004 Posts: 10 Location: Germany
|
Posted: Fri Feb 11, 2005 7:39 pm Post subject: |
|
|
@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 |
|
|
romhelfen n00b
Joined: 21 Nov 2004 Posts: 10 Location: Germany
|
Posted: Fri Feb 11, 2005 9:28 pm Post subject: SOLVED |
|
|
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 |
|
|
jannis Guru
Joined: 05 Dec 2004 Posts: 340 Location: Germany / Bavaria / Aschaffenburg
|
Posted: Fri May 27, 2005 9:39 am Post subject: |
|
|
The init-script changes the suid as defined here:
in /etc/init.d/teamspeak2-server |
|
Back to top |
|
|
|