RHEL-09-255110 - The RHEL 9 SSH server configuration file must be owned by root.

Information

Service configuration files enable or disable features of their respective services, which if configured incorrectly, can lead to insecure and vulnerable configurations. Therefore, service configuration files must be owned by the correct group to prevent unauthorized changes.

Solution

Configure the "/etc/ssh/sshd_config" file and the contents of "/etc/ssh/sshd_config.d" to be owned by root with the following command:

$ sudo chown -R root /etc/ssh/sshd_config /etc/ssh/sshd_config.d

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-257998r1082181_rule, STIG-ID|RHEL-09-255110, Vuln-ID|V-257998

Plugin: Unix

Control ID: 8d93e29f4332f8198410bc3c13c51ef08d0bd4ac3d25f1aefaad529fa338ccf3