AlmaLinux OS 9 must enable the Pluggable Authentication Module (PAM) interface for SSHD.
An XCCDF Rule
Description
When UsePAM is set to "yes", PAM runs through account and session types properly. This is important when restricted access to services based off of IP, time, or other factors of the account is needed. Additionally, this ensures users can inherit certain environment variables on login or disallow access to the server.
- ID
- SV-269420r1050303_rule
- Version
- ALMA-09-040390
- Severity
- High
- References
- Updated
Remediation Templates
A Manual Procedure
Configure the SSH daemon to use PAM.
Add the following line to "/etc/ssh/sshd_config", or uncomment the line and set the value to "yes":
UsePAM yes