7.4.5 Verify Permissions on /etc/hosts.deny

Information

The /etc/hosts.deny file contains network information that is used by many system
applications and therefore must be readable for these applications to operate.

*Rationale*

It is critical to ensure that the /etc/hosts.deny file is protected from unauthorized write
access. Although it is protected by default, the file permissions could be changed either
inadvertently or through malicious actions.

Solution

If the permissions of the /etc/hosts.deny file are incorrect, run the following command to
correct them-# /bin/chmod 644 /etc/hosts.deny

See Also

https://workbench.cisecurity.org/files/91

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CSCv6|3.1

Plugin: Unix

Control ID: 2f50d217710dbc506c8ac16f122c694fef8aff46e5d8747a3f6241169c13ac38