(note: developed on HP-UX, retyped, syntax may have minor errors)
# Test to see if the user logging in is trying to use a restricted
# account and if they are, log them out. Developed 06/18/1997
# author: john meister
#
case `/usr/bin/who am i | awk '{ print $1 }'`in
phredrick) if['/usr/bin/who am i | awk '{ print $1 }'`=`/user/bin/whoami`]
then
echo "###################"
echo " Please log in as an authorized user."
echo "###################"
/usr/bin/sleep 4
exit;exit
fi;;
infouser) if[`/usr/bin/who am i | awk '{ print $1 }'`=`/usr/bin/whomai`]
then
echo "###################"
echo " Please log in as an authorized user."
echo "###################"
/usr/bin/sleep 4
exit;exit
fi;;
esac
|
Select pages from WAGONEERS.COM:
Buy this FSJ decal... ...use PayPal to pay for it! |
AMSOIL synthetic lubricants and filters (please use customer #283461)
Shop AMAZON.com from wagoneers.com!
| |||||||
|
these pages protected by US Copyright laws John Meister copyright © 1995-2001 all rights reserved contact john-at-wagoneers.com | "Join the fight against spam (UCE)! Eliminate spam!" |
Washington State has a $500 fine for "spam" (unsolicited commercial email)! |