Hello,

I'm having troubles with a cgi-bin script. I'm using ubuntu server 10.04 and i'm quite new to scripting

I have a script (test.cgi) in the directory "/usr/lib/cgi-bin". I've chmodded it so it can be executed.

If i brows to it on a client (server/cgi-bin/test.xgi) it works fine.

Then i want it to execute a kill command for a process (i'm trying to set up a game server, and i would like to start/stop it true my browser) but my log file shows the following:

Code:
Wed Jan 19 17:08:35 2011] [error] [client 192.168.1.126] Sorry, try again., referer: 192.168.1.123/cgi-bin/test.cgi
[Wed Jan 19 17:08:35 2011] [error] [client 192.168.1.126] sudo: 3 incorrect password attempts, referer: 192.168.1.123/cgi-bin/test.cgi
i've added the following line to my sudoers file:
Code:
www-data server=NOPASSWD:/usr/lib/cgi-bin/test.cgi
doesn't work...

Can anyone help me with this?

Thanks