Subject: Summary: disabling logins

From: <Mike_Clark_at_wawb.uscourts.gov>
Date: Thu Feb 28 2002 - 14:11:18 EST
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/sunmanagers
Received 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