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_V2R2_STIG.zip

Item Details

Category: MAINTENANCE

References: 800-53|MA-4c., CAT|I, CCI|CCI-000877, Rule-ID|SV-257986r958510_rule, STIG-ID|RHEL-09-255050, Vuln-ID|V-257986

Plugin: Unix

Control ID: 183a0397c645ea4653b8d00b8382c9345b95e6f4c592fbe6aa99eb0135439614