5.1.3 Ensure access to /etc/sysconfig/sshd is configured

Information

The file /etc/sysconfig/sshd contains configuration specifications for the sshd service.

Configuration specifications for the sshd service need to be protected from unauthorized changes by non-privileged users.

Solution

Run the following commands to remove excess permissions, set owner, and set group on /etc/sysconfig/sshd :

# chmod u-x,g-we,o-rwx /etc/sysconfig/sshd
# chown root:root /etc/sysconfig/sshd

See Also

https://workbench.cisecurity.org/benchmarks/23597