Solved

Limit number of concurrent Connections/Logon

Posted on 1998-11-06
2
337 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.

856 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