limiting user account to one session

How do I keep a user from having more than one simultaneous telnet session to his/her account?  I'm using Unixware 2.1.2.
Who is Participating?
toToConnect With a Mentor Commented:
# put that lines in /etc/profile
if test `who | grep $LOGNAME` -gt 1
then exit
I've heard that this can prevent multiple logins as well as kick of idle users.  It's in a FreeBSD format, but I'm sure you can compile it for Unixware.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.