SV-281203r1166561_rule
V-281203
SRG-OS-000027-GPOS-00008
RHEL-10-600475
CAT III
10
Configure RHEL 10 to limit the number of concurrent sessions to "10" for all accounts and/or account types.
Add the following line to the top of "/etc/security/limits.conf" or in a ".conf" file defined in "/etc/security/limits.d/":
* hard maxlogins 10
Verify RHEL 10 limits the number of concurrent sessions to "10" for all accounts and/or account types with the following command:
$ sudo grep -rs maxlogins /etc/security/limits.conf /etc/security/limits.d/*.conf | grep -v '#'
/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 or commented out, or the value is set greater than "10" and is not documented with the information system security officer as an operational requirement for all domains that have the "maxlogins" item assigned, this is a finding.
V-281203
False
RHEL-10-600475
Verify RHEL 10 limits the number of concurrent sessions to "10" for all accounts and/or account types with the following command:
$ sudo grep -rs maxlogins /etc/security/limits.conf /etc/security/limits.d/*.conf | grep -v '#'
/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 or commented out, or the value is set greater than "10" and is not documented with the information system security officer as an operational requirement for all domains that have the "maxlogins" item assigned, this is a finding.
M
5733