I am trying to write a perl script to kill off process as part of an
automated monitoring/maintenance system. Unfortunately the processes to be
managed are owned by an application user (appusr) different from the
monitoring user (monusr).
The following is the scenerio....
A process,"proc", is run by "appusr"
When "monusr" detects faults with "proc" and executes a script owned by
"appusr" (permissions 4711) to kill the bad process.
When "monusr" executes appusr's perl script with the following simplified
code:
#!/usr/bin/perl
$pid1 = $ARGV[0];
process_kill("$pid1");
sub process_kill
{
my($pid) = @_;
if(kill 0, $pid)
{
kill 'TERM', $pid;
}
else
{
print "NOT THERE\n";
}
}
I get the error: "Insecure dependency in kill while running setuid at
/dev/fd/3".
Is there something I can do to satisfy this security condition which will
allow perl to complete the action, or am I out of luck, stuck kluging the
script in ksh.
Any advice would be helpful.
Matt
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]