[PLUG] Allow Users to Kill Process

Kristian Erik Hermansen kristian.hermansen at gmail.com
Thu Jan 24 06:14:03 UTC 2008


On Jan 23, 2008 8:20 PM, Tom Sharples <tsharples at qorvus.com> wrote:
> Why not write two scripts: one that takes your user's input and copies it to
> a file /tmp/process_to_be_killed, and a second (with root privileges)  that
> runs as a cronjob every minute or so, looks at the contents, if any, of
> /tmp/process_to_be_killed, and kills those processes? You can get a little
> more sophisticated and have said cronjob look first at a list of jobs that
> are not permitted be killed (maintained by you), prior to taking action.

Because that sounds like a temporary file race condition waiting to happen :-)
-- 
Kristian Erik Hermansen
"Know something about everything and everything about something."



More information about the PLUG mailing list