4.5.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 u-x,go-wx /etc/hosts.deny

Default Value:

OS Default: Installed

See Also

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

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-7(12), CSCv6|3.1, CSCv7|9.4

Plugin: Unix

Control ID: 18f7dda740c160fc1eb2b5fcf5aa2f28d251b8ce031d43ce47e961379c27126b