denyhosts中的权限被拒绝

时间:2014-02-18 20:25:17

标签: python

如果在其他地方(无法找到任何内容)解决这个问题或者是一个简单的Python问题,请提前道歉。我是Python无知的。

我在Fedora 20下运行默认安装的denyhosts。我一直收到以下错误:

2014-02-17 02:20:05,644 - denyfileutil: INFO     purging entries older than: Mon Feb  4 02:20:05 2013
2014-02-17 02:20:05,708 - denyfileutil: INFO     num entries purged: 0
2014-02-17 02:20:05,818 - sync        : ERROR    [Errno 13] Permission denied
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/DenyHosts/sync.py", line 117, in receive_new_hosts
    self.__prefs.get("SYNC_DOWNLOAD_RESILIENCY"))
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1292, in single_request
    self.send_content(h, request_body)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1439, in send_content
    connection.endheaders(request_body)
  File "/usr/lib64/python2.7/httplib.py", line 969, in endheaders
    self._send_output(message_body)
  File "/usr/lib64/python2.7/httplib.py", line 829, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.7/httplib.py", line 791, in send
    self.connect()
  File "/usr/lib64/python2.7/httplib.py", line 772, in connect
    self.timeout, self.source_address)
  File "/usr/lib64/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 13] Permission denied

有关如何解决此问题的任何建议?感谢。

1 个答案:

答案 0 :(得分:1)

denyhosts不能在Fedora 20下运行,因为Fedora 20已经改变了它处理日志文件的方式。目前似乎没有解决方法。请参阅this mailthis issue

建议:以root身份删除denyhosts,如下所示:

systemctl stop denyhosts
systemctl disable denyhosts
yum remove denyhosts