SV-269102r1049984_rule
V-269102
SRG-OS-000027-GPOS-00008
ALMA-09-001010
CAT III
10
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
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.
V-269102
False
ALMA-09-001010
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.
M
5664