RHEL-09-255050 - RHEL 9 must enable the Pluggable Authentication Module (PAM) interface for SSHD.

Information

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.

Solution

Configure the RHEL 9 SSHD to use the UsePAM interface add or modify the following line in '/etc/ssh/sshd_config'.

UsePAM yes

Restart the SSH daemon for the settings to take effect:

$ sudo systemctl restart sshd.service

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_9_V1R3_STIG.zip

Item Details

References: CAT|I, CCI|CCI-000877, Rule-ID|SV-257986r952183_rule, STIG-ID|RHEL-09-255050, Vuln-ID|V-257986

Plugin: Unix

Control ID: 3ad3371d8095f58e3d48c7fd8d09513c0cccd84403b4ad46a1a07dc8b1f98b76