Subject: Summary: disabling logins

2007-12-24 22:02:00

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

Comments

Got something to say?

You must be logged in to post a comment.