[MacPorts] #38084: denyhosts @2.6.4 exits (2) in MacOS X 10.8 (Mountain Lion)

MacPorts noreply at macports.org
Sat Feb 16 03:33:28 PST 2013


#38084: denyhosts @2.6.4 exits (2) in MacOS X 10.8 (Mountain Lion)
----------------------+--------------------------------
 Reporter:  catkfr@…  |      Owner:  macports-tickets@…
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.1.3
 Keywords:            |       Port:
----------------------+--------------------------------
 This should be an add-on to ticket #35477 but have not found how to do
 that.

 On a fresh install on denyhosts, denyhosts would exit with error 2 in
 system.log.

 I have followed the README.txt and launched by hand daemon-control:
 {{{
 denyhosts$ sudo ./daemon-control start
 starting DenyHosts:
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/denyhosts.py
 --daemon --config=/opt/local/share/denyhosts/denyhosts.cfg
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/denyhosts.py",
 line 164, in <module>
     first_time, noemail, daemon)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/DenyHosts/deny_hosts.py", line 78, in __init__
     self.get_denied_hosts()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/DenyHosts/deny_hosts.py", line 272, in get_denied_hosts
     for line in open(self.__prefs.get('HOSTS_DENY'), "r"):
 IOError: [Errno 2] No such file or directory: '/etc/hosts.deny'
 }}}

 Turns out: creating the file /etc/hosts.deny fixes the problem.

 I did a "sudo touch /etc/hosts.deny" and could then launch the daemon
 without any issues.

 As a summary, this is what I did installing denyhosts on Mountain Lion
 requires:
 - creating denyhosts.cfg and daemon-control in /opt/local/share/denyhosts
 - changing
 {{{
 SECURE_LOG=/private/var/log/system.log
 }}}
 - doing
 {{{
 sudo touch /etc/hosts.deny
 }}}
 - finally launching
 {{{
 sudo port load denyhosts
 }}}

 Hope this helps.

-- 
Ticket URL: <https://trac.macports.org/ticket/38084>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list