<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
Thx for the comments.<br>
First of all: Security is not an issue here, because its a LAN-only
server and at the Site we do our LAN-Parties (me and some Friends) we
don't even have Internet. Yes, there are places like that - honestly ;-)<br>
Nevertheless the gameserver is started as a "normal" user and the
Webserver runs as the same user - NOT as root.<br>
And I wouldn't do it that way on a public machine - to calm your
apprehension.<br>
<br>
As for Bram's comment:<br>
Good hint, I definitely have a closer look at that.<br>
But I fear thats not the problem, because of a fact that I forgot in
the description:<br>
I start two other Gameservers (CSS and BF2) via the exact same script
and checked severeal times the calls are really identical.<br>
These two work perfectly.<br>
Only the cod4 server starts very shortly (it just shows up for a moment
in "top" and then disappears again.)<br>
<br>
Thats why I started asking here, bacause it seems to be beacuse of
something thats different on the cod-server.<br>
<br>
Taraman<br>
<br>
Tyson schrieb:
<blockquote cite="mid:000f01ca793e$d7f6cf10$87e46d30$@com" type="cite">
  <pre wrap="">Yes please. Including system paths that are typically the same on every
machine running the same OS isn't insecure last I knew.

Setting wrong permissions on the other or running as root is.

So please enlighten us and provide sources.

Tyson



-----Original Message-----
From: B.M. Schiltmans [<a class="moz-txt-link-freetext" href="mailto:b.m.schiltmans@planet.nl">mailto:b.m.schiltmans@planet.nl</a>] 
Sent: Wednesday, December 09, 2009 10:12 AM
To: Call of Duty server admin list.
Subject: Re: [cod] Start COD4 Linux Dedicated via Webinterface

Well if you explain yourself a bit further we might just learn something 
here.
Humor me, plz...

Marco Padovan wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">that's a very insecure way to start gameservers :/


On Wed, Dec 9, 2009 at 3:55 PM, &lt;<a class="moz-txt-link-abbreviated" href="mailto:b.m.schiltmans@planet.nl">b.m.schiltmans@planet.nl</a> 
<a class="moz-txt-link-rfc2396E" href="mailto:b.m.schiltmans@planet.nl">&lt;mailto:b.m.schiltmans@planet.nl&gt;</a>&gt; wrote:

    Sound like a problem with uninitialized (system)variables. When a
    command is started through php, it doesn't load your profile and
    therefor things like your path are not set. Try including paths on
    all commands, so /usr/bin/screen instead of just screen.

    Hope that helps.
    Grtz
    Bram


    -----Oorspronkelijk bericht-----
    Van: Taraman [<a class="moz-txt-link-freetext" href="mailto:Taraman@gmx.de">mailto:Taraman@gmx.de</a>]
    Verzonden: wo 9-12-2009 13:54
    Aan: <a class="moz-txt-link-abbreviated" href="mailto:cod@icculus.org">cod@icculus.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:cod@icculus.org">&lt;mailto:cod@icculus.org&gt;</a>
    Onderwerp: [cod] Start COD4 Linux Dedicated via Webinterface



    Hi,

    I'm just programming a Webinterface for our LAN-server.
    My problem is, that the cod4 server does not start via the
    Webinterface.

    I have a Shell-script called gameserver.sh that starts the different
    servers via "/somedir/gameserver.sh cod4 start"
    This script works fine when used from a terminal - also if called from
    different directories. The Server itself is then running like a charm.
    The Script basically changes the directory to the game directory
    via "cd
    /home/me/cod4" and then launches the server with Screen -dmS

    In the Webinterface the script is called by PHP with
    "System('/home/me/gameserver.sh cod4 start', $status);"
    With this the Script says "Server Started" and the program is
    launched,
    but the process dies again immediately.

    I have a hard time debugging the error, because I don't get any error
    messages. The server does not live long enough to write a log and the
    PHP System command does not give me any useful output (I also tried to
    start the server directly).

    Does anyone have an Idea, what the problem is, or how I can get useful
    error Information?

    Taraman

    _______________________________________________
    cod mailing list
    <a class="moz-txt-link-abbreviated" href="mailto:cod@icculus.org">cod@icculus.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:cod@icculus.org">&lt;mailto:cod@icculus.org&gt;</a>
    <a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/cod">http://icculus.org/mailman/listinfo/cod</a>


    _______________________________________________
    cod mailing list
    <a class="moz-txt-link-abbreviated" href="mailto:cod@icculus.org">cod@icculus.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:cod@icculus.org">&lt;mailto:cod@icculus.org&gt;</a>
    <a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/cod">http://icculus.org/mailman/listinfo/cod</a>


------------------------------------------------------------------------

_______________________________________________
cod mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cod@icculus.org">cod@icculus.org</a>
<a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/cod">http://icculus.org/mailman/listinfo/cod</a>
  
    </pre>
  </blockquote>
  <pre wrap=""><!---->_______________________________________________
cod mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cod@icculus.org">cod@icculus.org</a>
<a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/cod">http://icculus.org/mailman/listinfo/cod</a>

No virus found in this incoming message.
Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a> 
Version: 9.0.709 / Virus Database: 270.14.101/2555 - Release Date: 12/09/09
12:41:00

_______________________________________________
cod mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cod@icculus.org">cod@icculus.org</a>
<a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/cod">http://icculus.org/mailman/listinfo/cod</a>

  </pre>
</blockquote>
</body>
</html>