SV-281262r1184762_rule
V-281262
SRG-OS-000080-GPOS-00048
RHEL-10-700590
CAT II
10
Configure RHEL 10 so that SSH server configuration files' permissions are not modified.
Run the following commands to restore the correct permissions of OpenSSH server configuration files:
$ sudo rpm --setugids openssh-server
$ sudo rpm --setperms openssh-server
Verify RHEL 10 is configured so that SSH server configuration files' permissions are not modified.
Check the permissions of the "/etc/ssh/sshd_config" file with the following command:
$ sudo rpm --verify openssh-server | awk '! ($2 == "c" && $1 ~ /^.\..\.\.\.\..\./) {print $0}'
If the command returns any output, this is a finding.
V-281262
False
RHEL-10-700590
Verify RHEL 10 is configured so that SSH server configuration files' permissions are not modified.
Check the permissions of the "/etc/ssh/sshd_config" file with the following command:
$ sudo rpm --verify openssh-server | awk '! ($2 == "c" && $1 ~ /^.\..\.\.\.\..\./) {print $0}'
If the command returns any output, this is a finding.
M
5733