Another user (Linc Davis) sent me an email on this topic: ====== I'm running it on MacOS 10.5. I had to make some changes to the config file. There is no longer an asl.log; instead, sshd messages are written to /var/log/secure.log. The Mac-specific SSHD_FORMAT_REGEX is no longer needed. ======
Perhaps his comments will be helpful. I'm not a Mac user so forward any success or failures back to the list. Regards, Phil Luke Brannon wrote: > New to denyhosts (and python for that matter) here and was looking > through the archives for any info on getting denyhosts running in > daemon mode on Mac OS 10.5 Server. I haven't seen anything specific > to 10.5 and I can't seem to get it up and running. > > Off the bat, there is no longer a /var/log/asl.log in 10.5, it's been > replaced with a .db file => /var/log/asl.db that is binary. It looks > like sshd is still logging to /var/log/secure.log however and I've > adjusted my cfg file accordingly. > > When I attempt to launch denyhosts using the daemon-control script I > get the following output before it exits abnormally: > > ########### > > sh-3.2# ./daemon-control start > starting DenyHosts: /usr/bin/env python /usr/bin/denyhosts.py -- > daemon --config=/usr/share/denyhosts/denyhosts.cfg > Traceback (most recent call last): > File "/usr/bin/denyhosts.py", line 164, in <module> > first_time, noemail, daemon) > File "/Library/Python/2.5/site-packages/DenyHosts/deny_hosts.py", > line 60, in __init__ > self.init_regex() > File "/Library/Python/2.5/site-packages/DenyHosts/deny_hosts.py", > line 490, in init_regex > self.__sshd_format_regex = self.get_regex('SSHD_FORMAT_REGEX', > SSHD_FORMAT_REGEX) > File "/Library/Python/2.5/site-packages/DenyHosts/deny_hosts.py", > line 486, in get_regex > return re.compile(val) > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/re.py", line 180, in compile > return _compile(pattern, flags) > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/re.py", line 233, in _compile > raise error, v # invalid expression > error: unknown specifier: ?P& > > ########### > > > I take it that the line 164 error means I haven't configured the mail > configuration properly, but I'm not sure what the other lines are > saying... > > After I get this up and running I'll tackle getting it to launch under > launchd. > > Many thanks-- > > Luke > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Denyhosts-user mailing list > Denyhosts-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/denyhosts-user > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Denyhosts-user mailing list Denyhosts-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/denyhosts-user