2014-02-18 89 views
0

如果在別處解決(無法找到任何內容)或是一個簡單的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 

關於如何解決此問題有什麼建議?謝謝。

+2

是你想綁定到特權(1直通1024)端口作爲非根用戶?你不能... – SingleNegationElimination

+0

我不是這個軟件包的作者,所以我只能推測代碼的運作方式。不過,如果它沒有適當的特權就試圖做到這一點,我會感到驚訝。 – bobd

回答

1

denyhosts不能在Fedora 20下運行,因爲Fedora 20改變了它如何處理日誌文件。目前似乎沒有解決方法。見this mailthis issue

建議:由於根,除去denyhosts如下:

systemctl stop denyhosts 
systemctl disable denyhosts 
yum remove denyhosts