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

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: dfb533bb7a880d8b559155e7128898580892f2f9dcc598a074609abfe8e0e20c