Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: killing linux process with CGI

by moritz (Cardinal)
on Oct 15, 2007 at 13:13 UTC ( #644929=note: print w/ replies, xml ) Need Help??


in reply to killing linux process with CGI

If you don't do some serious configuration magic, the script is run as the www or www-data user by apache, not as the owner of the script.

Which explains why you don't have the permission to kill scripts other than those with user www(-data).


Comment on Re: killing linux process with CGI
Select or Download Code
Re^2: killing linux process with CGI
by ultibuzz (Monk) on Oct 15, 2007 at 13:31 UTC
    scriped is owned by www-data, and process running also by www-data
Re^2: killing linux process with CGI
by halley (Prior) on Oct 15, 2007 at 13:32 UTC

    You should confirm this by printing the $< and $> values from your CGI script. One is the "real" user id (in numerical form), one is the "effective" user id. I'm expecting that neither one is set to the ID you expect.

    --
    [ e d @ h a l l e y . c c ]

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-08-22 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls