Control users or group users log in in the same time

xiaoxiao2021-03-06  40

First of all, in /etc/pam.d/login

Session Required /LIB/Security/Pam_Limits.so

Then add the user name to be restricted in /etc/security/limits.conf

For example: Edward Hard Maxlogins 2

This means that users Edward can only log in.

Pam_limits.so still has many other features, you go Google.

转载请注明原文地址:https://www.9cbs.com/read-78000.html

New Post(0)