Hello Rich, DAEMON_PURGE is your friend. You don't need to run --purge from the command line, just set the DAEMON_PURGE flag in your denyhosts.cfg file, eg.
DAEMON_PURGE=1h For an hourly purge. See the FAQ for acceptable time formats. You'll need to restart DH after you change your cfg file. Regards, Phil On Wed, 15 Aug 2007, Rich Rauenzahn wrote: > > I installed denyhosts via fedora core 6. I don't want to ban any > accidental failed logins permanently, nor for very long, so I'd like to > purge fairly frequently. But, it appears the purge shouldn't run when > the daemon is running. But I like daemon mode so that brute force > attacks are addressed quickly before too many tries. Here's the error I > get: > > # /usr/bin/denyhosts.py -c /etc/denyhosts.conf --purge > DenyHosts could not obtain lock (pid: 28964) > [Errno 17] File exists: '/var/lock/subsys/denyhosts' > > Is my only option around this to do something like this in /etc/cron.d/? > > */15 * * * root /sbin/service denyhosts stop && /usr/bin/denyhosts.py > -c /etc/denyhosts.conf --purge && /sbin/service denyhosts start > > Version info: > > # rpm -qi denyhosts > Name : denyhosts Relocations: (not relocatable) > Version : 2.6 Vendor: Fedora Project > Release : 5.fc6 Build Date: Tue 19 Jun 2007 > 05:29:44 PM PDT > Install Date: Wed 15 Aug 2007 11:13:10 AM PDT Build Host: > ppc3.fedora.redhat.com > Group : Applications/System Source RPM: > denyhosts-2.6-5.fc6.src.rpm > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Denyhosts-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/denyhosts-user
