Banners and PIDS

Kevin Buettner plug-discuss@lists.PLUG.phoenix.az.us
Thu, 2 Aug 2001 15:10:36 -0700


On Aug 2,  8:26am, Dominic Busher wrote:

> 2nd: When a user gets done dialing into a system using
> Minicom and DIP they sometimes forget to end thier
> processes and just exit out.  The next user telnets in
> and can't use Minicom or DIP (and cant kill the pids
> because they are not owners). How can I either: A)
> post a logout msg warning them to run a script I wrote
> to kill both pids before exiting OR B) Give all users
> the ability to kill pids regardless of owner (this
> would be preferred.)

If you want to force a user's processes to be killed when a
he logs off, just put "kill -KILL -1" in their logout script
(such as ~/.bash_logout).  Just make sure you *don't* do this
as root.

Giving users the ability to kill each other's processes is
dangerous, but if you really want to do something like this,
you should take a look at sudo.

Kevin