Hello Ceriel,

There is a bug with the non-daemon mode code.  It will be fixed w/ 2.7 but 
I did post some small code tweaks to the mailing list awhile ago.  I don't 
think I officially released a fix though.  This thread contains a couple 
of fixes:

http://tinyurl.com/6a8llp

Regards,

Phil


On Thu, 27 Nov 2008, Ceriel Jacobs wrote:

> Over here we are using Denyhosts version 2.6 in a Mac OS X 10.5.5
> environment:
> Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
>
> ----
> At first in the Daemon mode later in non-daemon.
> ----
> And later on we switched to the group of 1% not running in Daemon mode.
> This was done because OS X has got the nice feature to attach running
> processes to file and path changes.
> We execute this command: "python /usr/local/bin/denyhosts.py -c /usr/
> share/denyhosts/denyhosts.cfg -n --purge --sync" on each change of /
> var/log/secure.log
> I guess because we had been running in Daemon mode, we don't receive
> the "[Errno 2] No such file or directory: '/var/lib/denyhosts/sync-
> timestamp'" error.
> But we do also receive the
> 1. "Sync instance has no attribute 'get_denied_hosts'"
> and
> 2. "name 'info' is not defined"
> errors.
>
> ----
> /usr/bin/denyhosts does not exist any longer
> ----
> After applying the fix "info = logging.getLogger("denyhosts").info"
> and "dh.get_denied_hosts() + dh.update_hosts_deny(new_hosts)" to /usr/
> bin/denyhosts,
> 27-11-08 11:21:21 sudo[7126]   ceriel : TTY=ttys000 ; PWD=/Users/
> user ; USER=root ; COMMAND=/usr/bin/smultron /usr/bin/denyhosts
> the file /usr/bin/denyhosts was gone: $ sudo ls -l /usr/bin/denyhosts
> Password:
> ls: /usr/bin/denyhosts: No such file or directory
>
> ----
> install.py script does not bring /usr/bin/denyhosts back
> ----
> Trying to reinstall Denyhosts by executing a new setup.py install from
> source:
> 27-11-08 11:32:33 sudo[7270]   user : TTY=ttys000 ; PWD=/Users/ceriel/
> src/denyhosts-2.6 ; USER=root ; COMMAND=/usr/bin/python setup.py install
> This re-install, did not recreate /usr/bin/denyhosts
>
>
> Is this non creation of /usr/bin/denyhosts a bug in the install.py
> script or a problem in my specific configuration?
> And has anyone a good idea to get /usr/bin/denyhosts back? (I don't
> seem to be able to restore it from time machine.)
>
>
> Best regards,
>
> Ceriel Jacobs
>
>
> PS For the ones interested, this is the Mac OS X plist file we use to
> lauch Denyhosts on every change of secure.log:
> ---
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
> "http://www.apple.com/DTDs/PropertyList-1.0.dtd
> ">
> <plist version="1.0">
> <dict>
>       <key>Disabled</key>
>       <true/>
>       <key>Label</key>
>       <string>org.sourceforge.denyhosts</string>
>       <key>ProgramArguments</key>
>       <array>
>               <string>python</string>
>               <string>/usr/local/bin/denyhosts.py</string>
>               <string>-c</string>
>               <string>/usr/share/denyhosts/denyhosts.cfg</string>
>               <string>-n</string>
>               <string>--purge</string>
>               <string>--sync</string>
>       </array>
>       <key>WatchPaths</key>
>       <array>
>               <string>/var/log/secure.log</string>
>       </array>
> </dict>
> </plist>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Denyhosts-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/denyhosts-user
>

-- 
Regards,

Phil Schwartz
- http://www.phil-schwartz.com

Open Source Projects:
- DenyHosts: http://www.denyhosts.net
- Kodos: http://kodos.sourceforge.net
- ReleaseForge: http://releaseforge.sourceforge.net
- Scratchy: http://scratchy.sourceforge.net
- FAQtor: http://faqtor.sourceforge.net

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Denyhosts-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/denyhosts-user

Reply via email to