Hi everyone.
I’m new here…I’ve searched and searched for a solution and I can’t seem to get DenyHosts to start.
The error I am receiving is:
/etc/init.d/denyhosts start
Starting DenyHosts Traceback (most recent call last):
File "/usr/bin/denyhosts.py", line 5, in <module>
import DenyHosts.python_version
ImportError: No module named DenyHosts.python_version
startproc: exit status of parent of /usr/bin/denyhosts.py: 1
failed
Their are a lot of references to this in google searches and several solution revolving around the Python BIN path however I have tried everything with it to no avail.
Here are some references that might help:
/usr/share/denyhosts/daemon-control :
#!/usr/bin/env python
# denyhosts Bring up/down the DenyHosts daemon
#
# chkconfig: 2345 98 02
# description: Activates/Deactivates the
# DenyHosts daemon to block ssh attempts
#
###############################################
###############################################
#### Edit these to suit your configuration ####
###############################################
DENYHOSTS_BIN = "/usr/bin/denyhosts.py"
DENYHOSTS_LOCK = "/var/lock/subsys/denyhosts"
DENYHOSTS_CFG = "/usr/share/denyhosts/denyhosts.cfg"
#PYTHON_BIN = "/usr/bin python2.5"
PYTHON_BIN = "/usr/bin/python2.5"
find / -name 'python*'
<snip>
/usr/bin/python2
/usr/bin/python2.5
/usr/bin/python
<snip>
find / -name '*DenyHost*'
/usr/lib64/python2.5/site-packages/DenyHosts
/usr/lib64/python2.5/site-packages/DenyHosts-2.6-py2.5.egg-info
find / -name '*denyhost*'
/etc/init.d/denyhosts
/etc/logrotate.d/denyhosts
/tmp/denyhosts.ymp
/usr/bin/denyhosts.py
/usr/sbin/rcdenyhosts
/usr/share/denyhosts
/usr/share/denyhosts/denyhosts.cfg
/usr/share/doc/packages/denyhosts
/usr/share/doc/packages/denyhosts/denyhosts.cfg-dist
I suspect that some of those posts on the internet regarding the python bin path but I can’t seem to get it right.
The only thread I could find here based on it just referred to the opensuse oneclick install link which I tried as well.
Please let me know any more information needed thanks in advance…