1. description:/etc/security/limits. conf is the configuration file of/lib/security/pam_limits.so in LinuxPAM (plug-in Authentication Module, pluggableauthenticationmodumodules. 2. for example, the maximum number of users allowed to log on to reistlin is: 1, which is applicable to local system and remote SSH login.
1, note:
/Etc/security/limits. conf is the configuration file of/lib/security/pam_limits.so in Linux PAM (plug-in Authentication Module, Pluggable Authentication Modules.
2. example:
Restrict users: the maximum number of reistlin logon attempts is: 1, applicable to: local system, SSH remote login.
Reistlin :~ # Vim/etc/security/limits. conf
Reistlin-maxlogins 1 when the user reistlin logs on to the system through local or SSH, if the user attempts to log on to the system again, the system will reject the request and the prompt is:
Too logs logins for reistlin.
Last login: Fri Dec 3 00:00:01 2010 from 192.168.0.1