X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: References: <47b8d665 DOT 02fd220a DOT 6f30 DOT 11eb AT mx DOT google DOT com> <47b8f1ea DOT 2de2220a DOT 2c5d DOT 2181 AT mx DOT google DOT com> <47B8F571 DOT 3020700 AT computer DOT org> In-Reply-To: <47B8F571.3020700@computer.org> Subject: RE: Stop Brute Force Attack on SSH Date: Sun, 17 Feb 2008 21:33:35 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us From: "Kyle A. Dawson" Message-ID: <47b8fc94.50e3220a.09d0.ffffdc97@mx.google.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m1I3Y9sE013628 Sorry, my mistake. I created a script, and the file had windows new lines... I always forget that with TextPad. But I did read the readme and now I have these files: denyhosts.cfg daemon-control So the install/config seem to work. When I start this I get error (/var/log/denyhost.log): DenyHosts could not obtain lock (pid: ) [Errno 2] No such file or directory: '/var/lock/subsys/denyhosts' starting DenyHosts: /usr/bin/env python /usr/bin/denyhosts.py --daemon --config=/usr/share/denyhosts/denyhosts.cfg The service will not start, just the above message in log. Here is what I run cygrunsrv -I DenyHosts -p /usr/share/denyhosts/daemon-control -a start -d DenyHosts -f "DenyHosts 2.6" -y sshd -x /var/run/denyhosts.pid -o cygrunsrv -S DenyHosts I removed the \ in the "-a start option", it did not like that. Is it needed? -----Original Message----- From: René Berber [mailto:r DOT berber AT computer DOT org] Sent: Sunday, February 17, 2008 9:03 PM To: Kyle A. Dawson Subject: Re: Stop Brute Force Attack on SSH Kyle A. Dawson wrote: > The install worked great. But when I try to create the service: > > cygrunsrv -I DenyHosts -p /usr/share/denyhosts/daemon-control -a start -d > DenyHosts -f "DenyHosts 2.6" -y sshd -x /var/run/denyhosts.pid -o > > I get this: > > cygrunsrv: unknown option -- > > Also, this does not exist: > > /usr/share/denyhosts/daemon-control Let's start on this last one. The installation showed where things are setup, most end up in /usr/lib/python2.5/site-packages/DenyHosts, then there is /bin/denyhosts.py, and finally the 'workdir' /usr/share/denyhosts, do you see anything in there? Daemon-cotrol is a python script, in a listing it should show as executable (no extension)... oh, wait a minute, I see a daemon-control-dist maybe the installation steps included a copying of that one into daemon-control and then edit... yes, I forgot about it, but it is in the README.txt in that directory. Now about the first problem, I can't see where the '--' comes from, do you have a recent version of cygrunsrv? I see: $ cygrunsrv --version cygrunsrv V1.18, Jan 21 2008 And if you look at the options with 'cygrunsrv --help', all of them are correct. Of course there is a problem when 'daemon-control' doesn't exist. -- René Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/