0

I'm trying to configure my denyhosts on my server and I read in it's FAQ's entry on How can I prevent a legitimate IP address from being blocked by DenyHosts? that I have to move to WORK_DIR.

I don't know where WORK_DIR is? Does anyone know where is it?

Also I added my IP to hosts.allow like this:

ALL: 12.345.467.89

Is it enough?

Thank You

2 Answers 2

3

WORK_DIR is a variable that is defined in your denyhosts.cfg.

Default values I have seen are:

  1. /usr/share/denyhosts/data.
  2. /var/lib/denyhosts.

Check your denyhosts.cfg to be certain but it's probably one of those two.

[edit] On Ubuntu 14.04 you should look in the file /etc/denyhosts.conf

0

WORK-DIR should be the directory you want to add access for.

2
  • 1
    And where it's located?
    – user189122
    Sep 9, 2013 at 12:32
  • 1
    DenyHosts does not control access to directories. It controls access to hosts. This answer does not make sense as written.
    – Ladadadada
    Sep 9, 2013 at 14:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .