One way of promising that input comes from a particular user, (not script), is to have the communication be asynchronous.
Have the CGI application run as user "foo" and create /var/spool/foo which is mode 700.
The CGI script can validate and create jobs in this directory that the root process can examine, validate some more, and then process.
Thats the cleanest separation I've ever used - in general I prefer to use sudo.
In reply to Re: Security, root and CGI?
by skx
in thread Security, root and CGI?
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |