Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!amidillo!steve From: steve@amidillo.UUCP (Stephen ("The Armadillo with the Mask") Okay) Newsgroups: alt.hackers Subject: Real Men pipe to sh Message-ID: Date: 7 May 91 00:40:49 GMT Organization: Armadillo Headquarters Lines: 24 Approved: notrutgers@thatsforsure.org Here's something I cooked up to keep everybody 'cept me off our operator consoles. People learn not to use a certain tty real quick. (Yeah, I know I could hack login.c, but this was so much more fun! }:) ) whosit=`who|grep sometty|awk '{print $1}'`;export whosit if test $whosit then if grep $whosit someuserlist >/dev/null then exit else echo >/dev/sometty " INSERT OBNOXIOUS MESSAGE HERE" ps -tsometty|sed '/PID/d'|awk '{printf("kill -9 %s\n",$2)}'|sh fi else exit fi -- ----------------- ---Brought to you by ARMnet....The only USENET node run by an all armadillo staff amidillo!steve@uunet.uu.net |BEWARE THE THOUGHT POLICE! // "You'll think I'm dead, but I sail |POLITICALLY CORRECT IS INCORRECT!! \\// away..On a wave of mutilation..wave of mutilation...wave.."--Pixies