Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Security, root and CGI?

by skx (Parson)
on Jan 29, 2009 at 22:35 UTC ( #740058=note: print w/ replies, xml ) Need Help??


in reply to Security, root and CGI?

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.

Steve
--


Comment on Re: Security, root and CGI?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://740058]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2015-07-28 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls