Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Limit number of concurrent Connections/Logon

Posted on 1998-11-06
2
Medium Priority
?
364 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 200 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating 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…
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.
Suggested Courses

604 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