Thank you, Thank you, Thank you. I've been looking for a way to do this for a long time. This works great. if [ "`who am i|awk '{print $1}'`" = "$LOGNAME" ] then echo "Not authorized to login directly." exec sleep 2 fi I've want to do this on a user specific bases. so /etc/profile if [ "`who am i|awk '{print $1}'`" = "$LOGNAME" ] then if [ $LOGNAME = "UserOfInterest" ]; then echo "Not authorized to login directly." exec sleep 5 fi fi Works too Mike Clark WAWB UNIX Systems Admin. CCNA, MCP 206-553-7545 ex 680 _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Thu Feb 28 13:13:30 2002
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:35 EST