SV-270677r1101774_rule
V-270677
SRG-OS-000027-GPOS-00008
UBTU-24-200000
CAT III
10
Configure Ubuntu 24.04 LTS 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 Ubuntu 24.04 LTS limits the number of concurrent sessions to 10 for all accounts and/or account types with the following command:
$ grep -r maxlogins /etc/security/limits.conf /etc/security/limits.d/*.conf
/etc/security/limits.d/maxlogins.conf:* hard maxlogins 10
If the "maxlogins" item does not have a value of "10" or less, is commented out, or is missing, this is a finding.
V-270677
False
UBTU-24-200000
Verify Ubuntu 24.04 LTS limits the number of concurrent sessions to 10 for all accounts and/or account types with the following command:
$ grep -r maxlogins /etc/security/limits.conf /etc/security/limits.d/*.conf
/etc/security/limits.d/maxlogins.conf:* hard maxlogins 10
If the "maxlogins" item does not have a value of "10" or less, is commented out, or is missing, this is a finding.
M
5673