Solved

Limit number of concurrent Connections/Logon

Posted on 1998-11-06
2
352 Views
Last Modified: 2012-05-04
I want to limit the number of telnet sessions that a users can have at one time, and set it to 3 or 4. Is there a command that will do this in AIX 3.2
0
Comment
Question by:santama
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
fredfan earned 50 total points
ID: 2007676
Basically you can't do that unless your users are telneting thru another device. Fo example in HP you have something called DTC whereby from the DTC Openview management tool you can set how many session a user can telnet or to which server.

Anyway I suggest you try controlling them thru the user's .profile / .login file.
Below is an example of UNIX script where you can append to the user profile before they can do anything.

## limit user login to 3 times max only
##
USER=`whoami`
cnt=`who -H | grep -c "^${USER} "`
if [ $? -ne 1 -o ${cnt} -gt 3 ];then
        # Same User exists
        echo "\n\07Sorry, user ${USER} already login more than 3 times!"
        sleep 5
        exit
fi
0
 

Author Comment

by:santama
ID: 2007677
That is good enough for what I want.

Thanks.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question