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/23598

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: 0566748935892b0c3f29b3126eb9f2d34b2fc2c5ad16a6a5234aeb90e6542144