RHEL-10-600640 - RHEL 10 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 on 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 RHEL 10 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 with the following command 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_10_V1R1_STIG.zip

Item Details

Category: MAINTENANCE

References: 800-53|MA-4c., CAT|I, CCI|CCI-000877, Rule-ID|SV-281216r1166600_rule, STIG-ID|RHEL-10-600640, Vuln-ID|V-281216

Plugin: Unix

Control ID: 2d85f68c1f68ac3db02755fd072a65d2a3e2b63d80fd1ad5e9f53c57276582e2