217k views
1 vote
You want to allow any host from to have access to your system except a system called . What is the correct line you would use to add to the /etc/ file to accomplish this?

1 Answer

5 votes

Final answer:

In order to allow any host to access your system except one, you typically add a line to the "/ etc /hosts. deny" file in the format "ALL: specific-host-to-deny", replacing "specific-host-to-deny" with the host you wish to block.

Step-by-step explanation:

The question pertains to configuring host access permissions on a system, specifically using the / etc / hosts . allow or / etc /hosts . deny files on Unix-like operating systems. To allow access to your system for any host except one specific system, you would typically modify the / etc /hosts. deny file. The correct line to add would be something similar to:

ALL: specific-host-to-deny

Replace specific-host-to-deny with the hostname or IP address of the host that you want to exclude. This configuration assumes that / etc /hosts. allow is already set up to allow other hosts, or that its default setting is to allow connections that aren't explicitly denied in / etc /hosts. deny.

User Nullwriter
by
7.9k points