in reply to Re: How to send server / shell command via cgi?
in thread How to send server / shell command via cgi?
assuming http is the user-account your cgi-script runs under and then run the command in your cgi-script ashttp ALL=(ALL) NOPASSWD: ALL
It will then run as root and should not have permission problems.system("sudo -u root <your_command>")
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 |