SV-260552r958398_rule
V-260552
SRG-OS-000027-GPOS-00008
UBTU-22-412020
CAT III
10
Configure Ubuntu 22.04 LTS to limit the number of concurrent sessions to 10 for all accounts and/or account types.
Add or modify the following line at the top of the "/etc/security/limits.conf" file:
* hard maxlogins 10
Verify Ubuntu 22.04 LTS limits the number of concurrent sessions to 10 for all accounts and/or account types by using the following command:
$ sudo grep -r -s '^[^#].*maxlogins' /etc/security/limits.conf /etc/security/limits.d/*.conf
/etc/security/limits.conf:* hard maxlogins 10
If "maxlogins" does not have a value of "10" or less, is commented out, or is missing, this is a finding.
V-260552
False
UBTU-22-412020
Verify Ubuntu 22.04 LTS limits the number of concurrent sessions to 10 for all accounts and/or account types by using the following command:
$ sudo grep -r -s '^[^#].*maxlogins' /etc/security/limits.conf /etc/security/limits.d/*.conf
/etc/security/limits.conf:* hard maxlogins 10
If "maxlogins" does not have a value of "10" or less, is commented out, or is missing, this is a finding.
M
5594