=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
UNIX GURU UNIVERSE
UNIX HOT TIP
Unix Tip 3603 - December 21, 2013
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@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@wellogix.com
This tip generously supported by: dcooley@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@ugu.com - Copyright 1994-2001
==========================================================================
Sabtu, 21 Desember 2013
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar