cancel
Showing results for 
Search instead for 
Did you mean: 

Login Control

 
ust3
Regular Advisor

Login Control

we use limits.conf to control the max no. of user login , users are only allow 2 login at the same time , now if I want when the user attempt to login the third session , then the system will prompt to ask the user kill the previous session or not , can advise what can i do ? thx
1 REPLY
Alexander Chuzhoy
Honored Contributor

Re: Login Control

You can check this in the user's shell initialization script (like .bash_profile).
This will require to have .bash_profile read only for user.