ALMA-09-001890 - AlmaLinux OS 9 must automatically exit interactive command shell user sessions after 10 minutes of inactivity.

Information

Terminating an idle interactive command shell user session within a short time period reduces the window of opportunity for unauthorized personnel to take control of it when left unattended in a virtual terminal or physical console.

Declaring $TMOUT as read-only means the user cannot override the setting.

Satisfies: SRG-OS-000029-GPOS-00010, SRG-OS-000281-GPOS-00111, SRG-OS-000163-GPOS-00072

Solution

Configure AlmaLinux OS 9 to exit interactive command shell user sessions after 10 minutes of inactivity using the following command:

echo "declare -xr TMOUT=600" > /etc/profile.d/tmout.sh

See Also

https://workbench.cisecurity.org/benchmarks/0

Item Details

Category: ACCESS CONTROL, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|AC-11a., 800-53|AC-12(1), 800-53|SC-10, CAT|II, CCI|CCI-000057, CCI|CCI-001133, CCI|CCI-002364, Rule-ID|SV-269108r1049990_rule, STIG-ID|ALMA-09-001890, Vuln-ID|V-269108

Plugin: Unix

Control ID: 98d6c6208bbec139d7350cdf2285cd4ac3c78953b1adc05c20ecea80a25b4531