How to disable multiple login temporary
How to disable multiple login temporary from users profile
please help me i am new for unix environment.
i have tried with this script but not working
if [ "$LOGNAME" != "root" ]
then
LINES=`who | grep -c $LOGNAME `
if [ "$LINES" -gt "1" ]
then
echo "Already logged in!"
sleep 5
exec /bin/true
fi
fi
|