in reply to Re: How to send server / shell command via cgi?
in thread How to send server / shell command via cgi?

If you don't care about security ramifications you can just add
http ALL=(ALL) NOPASSWD: ALL
assuming http is the user-account your cgi-script runs under and then run the command in your cgi-script as
system("sudo -u root <your_command>")
It will then run as root and should not have permission problems.

That should get you started for a more secure setup later.

hth

Replies are listed 'Best First'.
Re^3: How to send server / shell command via cgi?
by DrStrangeLv (Initiate) on May 21, 2009 at 02:31 UTC
    Thank you all for your help that last bit got it working!