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

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: 3da1805694e074f02902a65e5239b9f1c8cfce33971db91fea351ca435f1b1a1