Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    327

    /etc/hosts.deny missing ":" separator


    Hello,

    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 # - Pastebin.com

    Any advice how to fix & prevent this happen please?

  2. #2
    Linux Newbie
    Join Date
    Jul 2007
    Location
    Here. There. Anywhere.
    Posts
    157
    The final line, "185.30.164.22", points to L2 Order VS Chaos --know what that is?
    Anyway, if you're trying to block it, change the line to "ALL : 185.30.164.22". 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
  •