Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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).

Replies are listed 'Best First'.
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 ]

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2016-10-25 21:19 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (330 votes). Check out past polls.