RHEL-09-255115 - RHEL 9 SSH server configuration files' permissions must not be modified.

Information

Service configuration files enable or disable features of their respective services, that if configured incorrectly, can lead to insecure and vulnerable configurations. Therefore, service configuration files must have correct permissions (owner, group owner, mode) to prevent unauthorized changes.

Solution

Run the following commands to restore the correct permissions of OpenSSH server configuration files:

$ sudo dnf reinstall -y openssh-server
$ rpm --setugids openssh-server
$ rpm --setperms openssh-server

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-257999r1082182_rule, STIG-ID|RHEL-09-255115, Vuln-ID|V-257999

Plugin: Unix

Control ID: ae94a47e5ce70e1374db66674ba4d6fe72d77536b9e8606aa5229595a7576741