SV-257999r1155686_rule
V-257999
SRG-OS-000480-GPOS-00227
RHEL-09-255115
CAT II
10
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 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-257999
False
RHEL-09-255115
Verify 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
5551