AlmaLinux OS 9 must limit the number of concurrent sessions to ten for all accounts and/or account types.

STIG ID: ALMA-09-001010  |  SRG: SRG-OS-000027-GPOS-00008 |  Severity: low |  CCI: CCI-000054 |  Vulnerability Id: V-269102

Vulnerability Discussion

Operating system management includes the ability to control the number of users and user sessions that use an operating system. Limiting the number of allowed users and sessions per user is helpful in reducing the risks related to denial-of-service (DoS) attacks.

This requirement addresses concurrent sessions for information system accounts and does not address concurrent sessions by single users via multiple system accounts. The maximum number of concurrent sessions should be defined based upon mission needs and the operational environment for each system.

Check

Verify AlmaLinux OS 9 limits the number of concurrent sessions to "10" for all accounts and/or account types with the following command:

$ grep -rs maxlogins /etc/security/limits.conf /etc/security/limits.d/*.conf

/etc/security/limits.d/maxlogins.conf:* hard maxlogins 10

This can be set as a global domain (with the * wildcard) but may be set differently for multiple domains.

If the "maxlogins" item is missing, commented out, or the value is set greater than 10, this is a finding.

Fix

Configure AlmaLinux OS 9 to limit the number of concurrent sessions to "10" for all accounts and/or account types.

Add the following line to the top of the /etc/security/limits.conf or in a ".conf" file defined in /etc/security/limits.d/:

* hard maxlogins 10