Mailinglist Archive: opensuse (2629 mails)
| < Previous | Next > |
[SLE] killing processes (kkk.c)
- From: keith@xxxxxxxxxxxxxx (Keith Warno)
- Date: Mon, 15 May 2000 12:09:33 -0400
- Message-id: <000801bfbe87$f5ad4920$9e0a010a@xxxxxxxxxxx>
Hello SuSE pplz.
Last week I saw a message go by from someone wondering how to "kick out" a
user that was logged in. This usually involves simply killing the offending
user's login shell.
Anyways, a while back I wrote a little program (attached) called "kkk" (for
kill kill KILL). It runs through /proc killing off processes of a user you
specify. I'm sure there is a program to do this sort of thing already, but
in my boredom and as an excercise I fabricated this.
The only requirement is that you have /proc mounted, which you should
anyway.
This program is not GPLed (yet). It may be one day, but who knows. So, the
standard disclaimer: There is NO WARRANTY (expressed, implied, whatever)
attached to this code. If you hurt yourself with it, it's not my fault!
Feel free to modify/change the code (it's a messy sucker), but if you do so,
please keep the comment at the top intact. Also send me a copy of your
changes. :)
Compile with gcc like so: gcc -Wall -s -o kkk kkk.c
Cheerz.
k
/* Keith Warno
** Developer & Sys Admin
** http://www.HaggleWare.com/
*/
<HR>
<UL>
<LI>application/octet-stream attachment: kkk.c
</UL>
--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
| < Previous | Next > |