[PLUG] Allow Users to Kill Process
Tom Sharples
tsharples at qorvus.com
Thu Jan 24 06:57:38 UTC 2008
Not if written and implemented properly :-)
----- Original Message -----
From: "Kristian Erik Hermansen" <kristian.hermansen at gmail.com>
To: "General Linux/UNIX discussion and help,civil and on-topic"
<plug at lists.pdxlinux.org>
Sent: Wednesday, January 23, 2008 10:14 PM
Subject: Re: [PLUG] Allow Users to Kill Process
> 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."
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
More information about the PLUG
mailing list