If i understand this correctly you are asking for a process that apache kicks off to run a process as a differant user.<br>
<br>
As the previous user specified:<span class="sg">Paul Bowsher<br>
<br>
If you use virtualhosts along with suexec you can control all scripts
being executed on a site to be ran as any user you want. Further if you
look at the subproces that is spawned from apache you can see if
running as that user.<br>
<br>
To do this first you have to compile apache with suexec support. <br>
do: <br>
/usr/local/apache/bin/httpd -l <br>
to tell you if it is enabled.<br>
<br>
Once you do that in httpd.conf you tell the system what user to execute a script as and where they may execute scripts from.<br>
<br>
Also you could always shell out of the script and run the &quot;su user -c &quot;/bf2 stop| start&quot; way as well.<br>
</span><br>
Hope that helps<br><br><div><span class="gmail_quote">On 7/14/05, <b class="gmail_sendername">ScratchMonkey</b> &lt;<a href="mailto:ScratchMonkey@matureasskickers.net">ScratchMonkey@matureasskickers.net</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">--On Wednesday, July 13, 2005 7:31 PM -0500 Tim Cooper<br>&lt;<a href="mailto:tim@myinternetservices.com">
tim@myinternetservices.com</a>&gt; wrote:<br><br>&gt; I have a web app that executes this and another to kill the screen. The<br>&gt; problem I am having is that the users &quot;apache&quot; executes this and not the<br>&gt; user I need it to be
<br><br>&quot;man sudo&quot;<br><br>In my /etc/sudoers I have this line:<br><br>apache&nbsp;&nbsp;ALL = (root) NOPASSWD: /sbin/service bf2*<br><br>This says that user apache can issue the command &quot;/sbin/service bf2*&quot; (the
<br>&quot;*&quot; is a wildcard to indicate that anything can follow that on the line).<br>The command will run as root and no password will be prompted for. The user<br>apache must issue the command exactly as specified:
<br><br>sudo /sbin/service bf2 start<br>sudo /sbin/service bf2 stop<br><br>I think what you want is the same but with root replaced by whatever user<br>runs the game server. You can use an alias there and then define the alias
<br>earlier in the file as the list of game server users.<br><br><br></blockquote></div><br><br><br>-- <br>Thanks Again,<br><br>Ron Davis <br>Home: 314-521-1945<br>Cell: 314-393-3245