Check: UBTU-24-200000
Canonical Ubuntu 24.04 LTS STIG:
UBTU-24-200000
(in version v1 r1)
Title
Ubuntu 24.04 LTS must limit the number of concurrent sessions to 10 for all accounts and/or account types. (Cat III impact)
Discussion
Ubuntu 24.04 LTS management includes the ability to control the number of users and user sessions that utilize 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 must be defined based upon mission needs and the operational environment for each system.
Check Content
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 maxlogins /etc/security/limits.conf | grep -v '^* hard maxlogins' * 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.
Fix Text
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
Additional Identifiers
Rule ID: SV-270677r1066520_rule
Vulnerability ID: V-270677
Group Title: SRG-OS-000027-GPOS-00008
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000054 |
Limit the number of concurrent sessions for each organization-defined account and/or account type to an organization-defined number. |
Controls
Number | Title |
---|---|
AC-10 |
Concurrent Session Control |