1.211 RHEL-09-255050

Information

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

GROUP ID: V-257986
RULE ID: SV-257986r1045030

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 by adding or modifying the following line in "/etc/ssh/sshd_config" or in a file in "/etc/ssh/sshd_config.d".

UsePAM yes

Restart the SSH daemon for the settings to take effect:

$ sudo systemctl restart sshd.service

See Also

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

Item Details

Category: MAINTENANCE

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

Plugin: Unix

Control ID: fc0672c8349b5c58f2e093397c3f5e5cc1abed5c4e31ceb09daf063ea96cb200