delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org> |
Subject: | Re: HowTo setup cygwin + sshd using hosts.allow and hosts.deny and use detailed logging |
Date: | Thu, 31 Jan 2008 17:03:46 -0600 |
Lines: | 67 |
Message-ID: | <fntk4l$g0e$1@ger.gmane.org> |
References: | <000601c86459$ff0bf5e0$ac399905 AT a3500> |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 2.0.0.9 (Windows/20071031) |
In-Reply-To: | <000601c86459$ff0bf5e0$ac399905@a3500> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Martin wrote: [snip] > 1.) ssh-host-config with User Separation and install as a service > 2.) syslogd-config > 3.) Installed Denyhosts by issuing the command as Administrator Administator? I don't think that's needed, the installation is on=20 Cygwin, Windows doesn't care about special administrator privileges in=20 this case. > python setup.py install > followed the first steps in the readme of denyhosts > and edited denyhost.cfg and daemon-control >=20 > denyhosts.cfg changes: > commented out the line for Red Hat > and activate the following line > SECURE_LOG =3D /var/log/messages Make sure the following is also set: SYSLOG_REPORT=3DYES > And also activated this one: > LOCK_FILE =3D /var/run/denyhosts.pid >=20 > OK so far - fine > When I try to start denyhosts by hand with this: > /usr/bin/denyhosts.py --daemon --config=3D/usr/share/denyhosts/denyhosts.= cfg >=20 > Everything is fine and denyhosts is running What about the command used by cygrunsrv:=20 "/usr/share/denyhosts/daemon-control start" ? > But if I try to start it as a service it immediately stops after starting! >=20 > 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 >=20 > I have looked into the /var/log/messages logfile when I start denyhosts a= s a > service - looks like this: >=20 > Jan 31 23:28:33 yello-server DenyHosts: PID 3868: `DenyHosts' service > stopped, exit status: 255 >=20 > I have tried to run denyhosts as SYSTEM or as Administrator in the servic= es > config - but with no luck! >=20 > What I have done wrong? Nothing I can see, unless it's a very obvious "No Cygwin in global=20 PATH", i.e. not the Cygwin PATH you see in the terminal, but the Windows=20 PATH environment variable set in Computer -> Properties -> Advanced ->=20 Environment Variables. Try enabling the log, and then see the last few lines of=20 /var/log/denyhosts.log . --=20 Ren=E9 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |