Distributor ID: Ubuntu
Description:    Ubuntu 10.04.2 LTS
Release:        10.04
Codename:       lucid
AMD64
DenyHosts version: 2.6

From https://bugs.launchpad.net/ubuntu/+source/denyhosts/+bug/564476 I got a solution which seems to solve the problem for me.

Ted wrote there:

The denyhosts author (thanks Phil!) and another person seem to have solved this issue. See 
http://sourceforge.net/tracker/index.php?func=detail&aid=2898723&group_id=131204&atid=720419
 for the details.

I am running Ubuntu 10.04. The following fix from sourceforge blog got it 
working for me:

1) Edit /var/lib/denyhosts/sync-timestamp, and replace the timestamp with a 
valid unix timestamp. (I used 1276467300 )

2) At line 55 in /usr/share/denyhosts/DenyHosts/sync.py, I made the following 
change

from
fp = open(os.path.join(self.__work_dir,
SYNC_TIMESTAMP), "a")

to
fp = open(os.path.join(self.__work_dir,
SYNC_TIMESTAMP), "w")

I take *NO* credit for the fix, but am posting to give something back to the 
community & hopefully save the next chap some research time fixing this issue.




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to