delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/31/17:39:13

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Authenticated: #33563777
From: "Martin" <sonypsx AT gmx DOT net>
To: <cygwin AT cygwin DOT com>
Subject: Re: HowTo setup cygwin + sshd using hosts.allow and hosts.deny and use detailed logging
Date: Thu, 31 Jan 2008 23:38:18 +0100
Message-ID: <000601c86459$ff0bf5e0$ac399905@a3500>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
X-Y-GMX-Trusted: 0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hello Rene!


First of all thanks.
I would never dig up a commandline like yours by myself :)

But again I ran into troubles

For absolutely sure reasons I have cleaned cygwin from my maschine of course
including
Sshd_server User Account
Sshd User Account

All Services from cygwin ( sshd, denyhosts, syslogd)

And deleted the whole subdirectory structure Cygwin.

Then I have done the following steps:
1.)ssh-host-config
with User Separation and install as a service
2.)
syslogd-config
3.) Installed Denyhosts by issuing the command as Administrator
python setup.py install
followed the first steps in the readme of denyhosts
and edited denyhost.cfg and daemon-control

denyhosts.cfg changes:
commented out the line for Red Hat
and activate the following line
SECURE_LOG = /var/log/messages

And also activated this one:
LOCK_FILE = /var/run/denyhosts.pid

OK so far - fine
When I try to start denyhosts by hand with this:
/usr/bin/denyhosts.py --daemon --config=/usr/share/denyhosts/denyhosts.cfg

Everything is fine and denyhosts is running

But if I try to start it as a service it immediately stops after starting!

I installed the service with your suggestion:
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 have looked into the /var/log/messages logfile when I start denyhosts as a
service - looks like this:

Jan 31 23:28:33 yello-server DenyHosts: PID 3868: `DenyHosts' service
stopped, exit status: 255

I have tried to run denyhosts as SYSTEM or as Administrator in the services
config - but with no luck!

What I have done wrong?


Best regards
Martin



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019