Configure limits. conf to limit the number of Linux user logins

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.