Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    /etc/hosts.deny missing ":" separator


    my Logwatch returns this:

    **Unmatched Entries**
    warning: /etc/hosts.deny, line 138: missing ":" separator : 1439 time(s)
    I read on the internet that there could be some nonprinting character and that command "cp /dev/null /etc/hosts.deny" can fix the issue, but im afraid to run that command not to clear my existing block IPs?

    This is content of my hosts.deny: # # hosts.deny This file describes the names of the hosts which are # -

    Any advice how to fix & prevent this happen please?

  2. #2
    Linux Newbie
    Join Date
    Jul 2007
    Here. There. Anywhere.
    The final line, "", points to L2 Order VS Chaos --know what that is?
    Anyway, if you're trying to block it, change the line to "ALL :". If you're not blocking it, delete the line or comment it out by adding # to the beginning.
    The command "cp /dev/null /etc/hosts.deny" basically deletes the contents of the host.deny file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts