Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2018-06-25 09:03 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.