>>>>> "rp" == Ray Parish <[EMAIL PROTECTED]> writes:

rp> How can one limit simultaneous logins to a shell account on an individual
rp> user?

I just use something simple like this in /etc/profile:

# This script allows you to login only 3 times as any user
#
logcount=`/usr/bin/w | /bin/grep -c $LOGNAME`
if [ $logcount = 3 ] ; then
        echo "You have tried to login more than three times." | /bin/mail -s "Login 
Error" root
        logout
fi


-- 
Ray Curtis         Unix Programmer/Consultant   Curtis Consulting
mailto:[EMAIL PROTECTED]                        http://www.clark.net/pub/ray
============================================================================



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list
  • Logins Ray Parish
    • Ray Curtis

Reply via email to