[ale] RAID recovery

Geoffrey esoteric at 3times25.net
Fri Nov 11 16:32:59 EST 2005


James P. Kinney III wrote:
> One word:
> 
> 
> 
> xroach

Here's a fun little script. We used this back in the days when we were 
running a single serial terminal and someone left their machine unattended:

trap "" 1 2 3
PROMPT="linux login: "

while :;do
     echo -n "$PROMPT "
     read login
     echo -n "password: "
     stty -echo
     read pass
     stty echo
     echo
     echo "login incorrect"
     echo; echo
     sleep 2
done

If you were real nasty, you could keep the value of $pass...

-- 
Until later, Geoffrey



More information about the Ale mailing list