Solved

Limit number of concurrent Connections/Logon

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
error while running the scirpt 24 125
sort command HPUX 11 65
Audit HISTFILE for all users on AIX 9 106
Doing a DR (Disaster Recovery) Test on Red Hat Linux Servers. 2 98
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

914 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now