[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: I'm a Bastard Operator... From Hell.



On Tue, 29 Jul 2003, Aaron wrote:

> I had someone SSHed into my box the other day (my laptop) while at
> work and I wanted to screw with him by booting him off. I obviously
> have root on my box, but I wonder if there is any "official" or
> "proper" way to make a user leave the system?
> 
> Something along the lines of a "kick" is what I'm after. I achieved
> the same result by killing his topmost bash process, but not only is
> that probably dangerous and unpredictable, it doesn't let me add a
> mean message ;-)

Shouldn't a real BOFH already know this?  :-)

Off the top of my head, try:

	1) w | grep yuppyscum to get the terminal number (#)
	2) echo -e -n 'DIE SCUM!' > /dev/pts/#
	3) pkill -u yuppyscum

I'm sure there are more elegant solutions, but I prefer the brute
forcefulness of this one.  Plus, my way takes all of the user processes.
:)  No (GNU) screen to the rescue.

~ Jesse Meyer

-- 
         icq: 34583382 / msn: dasunt@hotmail.com / yim: tsunad

   "We are what we pretend to be, so we must be careful about what we 
    pretend to be." - Kurt Vonnegut Jr : Mother Night

Attachment: pgpMN6LGEa3UG.pgp
Description: PGP signature


Reply to: