Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

concurrent user logons

Status
Not open for further replies.

djroot2

IS-IT--Management
Jan 12, 2004
2
US
Does anyone know a way to limit a user to one login session on AIX 4.3?
 
Execute this either in /etc/profile or some other location so that it runs everytime the user login

who | grep ${USER} | cut -c1-8 | wc -w

and check this count with the threshold.

if more then exit him out.. with the appropriate message.

Har
 
you have to modify the /etc/security/login.cfg stanza for the specific user
See man login.cfg
 
in login.cfg does maxlogins apply to users specifically or is that a global setting? (ie having maxlogins = 64) does that mean a single user is aloud to login 64 times or does that mean 64 concurrent logins total?
 
Yes but to use the hars advise you have to make the .profile not "breakable" by a Ctrl-C
 
The maxlogins attribute in locin.cfg indicates the maximum simutaneous logins allowed on the system.
This applies to all logins independent of which user.
It does not limit a specific user.
It is better to test it in /etc/profile as was suggested.


 
How fast do you have to be to break an /etc/profile run? (just put it at the top)

I understand a .profile break (it gives you more time).

I don't think this will be a problem.
 
djroot,

a Keyword Search of "limit login" yields a list of topics that expand on this. Here are a couple of the threads:

thread52-561019 and thread52-464630.

If you have maxlogins=64, that means that all users can log in 64 times. I believe with 4.3 AIX licensing was for unlimited users.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top