[MacPorts] #38084: denyhosts @2.6.4 exits (2) in MacOS X 10.8 (Mountain Lion)
#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
#38084: denyhosts @2.6.4 exits (2) in MacOS X 10.8 (Mountain Lion) ------------------------+------------------- Reporter: catkfr@… | Owner: snc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: denyhosts | ------------------------+------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => snc@… * port: => denyhosts -- Ticket URL: <https://trac.macports.org/ticket/38084#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38084: denyhosts @2.6.4 exits (2) in MacOS X 10.8 (Mountain Lion) ------------------------+------------------- Reporter: catkfr@… | Owner: snc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: denyhosts | ------------------------+------------------- Comment (by catkfr@…): The above got denyhosts "working" in the sense that it fills properly the /etc/hosts.deny file. Beware that on Mac OS X 10.8 ML, this does not do anything since TCP Wrappers have been removed from the system. https://discussions.apple.com/thread/4267535?start=0&tstart=0 Alternative solution that is recommended is sshguard available in macports -- Ticket URL: <https://trac.macports.org/ticket/38084#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38084: denyhosts @2.6.4 exits (2) in MacOS X 10.8 (Mountain Lion) ------------------------+-------------------- Reporter: catkfr@… | Owner: snc@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: denyhosts | ------------------------+-------------------- Changes (by snc@…): * status: new => closed * version: 2.1.3 => * resolution: => fixed Comment: Blocked installation on Snow Leopard (and newer). r103268 -- Ticket URL: <https://trac.macports.org/ticket/38084#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38084: denyhosts @2.6.4 exits (2) in MacOS X 10.8 (Mountain Lion) ------------------------+-------------------- Reporter: catkfr@… | Owner: snc@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: denyhosts | ------------------------+-------------------- Comment (by jmr@…): Shouldn't it just depend on tcp_wrappers? -- Ticket URL: <https://trac.macports.org/ticket/38084#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38084: denyhosts @2.6.4 exits (2) in MacOS X 10.8 (Mountain Lion) ------------------------+-------------------- Reporter: catkfr@… | Owner: snc@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: denyhosts | ------------------------+-------------------- Comment (by snc@…): Patches welcome. I still run on Snow Leopard. -- Ticket URL: <https://trac.macports.org/ticket/38084#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts