[olug] Unix Tip: KEEP THAT USER OUT!

Unix Guru Universe listserv at ugu.com
Thu Dec 12 18:59:43 UTC 2002


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

			      UNIX GURU UNIVERSE 
			         UNIX HOT TIP

			Unix Tip 2172 - December 12, 2002

		    http://www.ugu.com/sui/ugu/show?tip.today

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


KEEP THAT USER OUT!

Ever get into one of 
those pesky admin wars 
or need to keep the 
developers off of your 
system for a few minutes 
without taking the system 
to single user mode?  

This nasty little script 
will do the trick.

[root at foo /]# while true
> do
> kill -9 $(ps -aux |grep username | awk '{ print $2 }' )
> sleep 2
> done

This can make you the life 
of the party (At work)

Don Cooley
Unix Systems/Security Admin
Wellogix Inc.
dcooley at wellogix.com




This tip generously supported by: dcooley at wellogix.com




--------------------------------------------------------------------------
To Subscribe:    http://www.ugu.com/sui/ugu/show?tip.subscribe
To Unsubscribe:  http://www.ugu.com/sui/ugu/show?tip.unsubscribe
To Submit A Tip: http://www.ugu.com/sui/ugu/show?tip.today

==========================================================================
DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE
NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX 
GURU UNIVERSE. ALL TIPS ARE "USE AT YOUR OWN RISK". UGU  ADVISES THAT 
ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.

Unix Guru Universe - www.ugu.com - tips at ugu.com - Copyright 1994-2001
==========================================================================




More information about the OLUG mailing list