1827251 Members
3102 Online
109716 Solutions
New Discussion

Restrict

 
SOLVED
Go to solution
O'lnes
Regular Advisor

Restrict

How to restrict the no. of login to linux system ? Thanks.
Andy
1 REPLY 1
I_M
Honored Contributor
Solution

Re: Restrict

Hi

I don't have the answer.
But maybe you can create the script.

1) check current number of user by w command.
2) if current number of users are more than what you expect, create "no login file"
3) if current number of users are less than what you expect, delete "no login file"

Check login.defs for more detail.

Good luck