[bf1942] web script

Tim Cooper tim at myinternetservices.com
Thu Jul 14 01:22:31 EDT 2005

That's the problem .... I am trying to run this off a web page and it wants
to run it as the apache user ...... as root there is no need for the
password ....

At the end of the day I am trying to make a webpage that will allow the
clients to start/stop their server at will


-----Original Message-----
From: Robert Mount [mailto:rmount at gmail.com] 
Sent: Wednesday, July 13, 2005 10:27 PM
To: bf1942 at icculus.org
Subject: Re: [bf1942] web script

Try this...

su rental1 -c "/home/user/bf2/start.sh"

running that line as root will force the command to be loaded as
"rental1" instead.


On 7/13/05, Tim Cooper <tim at myinternetservices.com> wrote:
> Is there a way I can make a script to su as a user and have the the script
> become that user
> cd /home/user/bf2
> screen -dmS rental1 /home/user/bf2/start.sh
> I have a web app that executes this and another to kill the screen. The
> problem I am having is that the users "apache" executes this and not the
> user I need it to be
> Any suggestions ?
> Thanks,
> Tim

More information about the Bf1942 mailing list