www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/01/19:11:04

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: Fri, 01 Feb 2008 18:10:15 -0600
Lines: 43
Message-ID: <fo0cd8$5m2$1@ger.gmane.org>
References: <000001c8652b$4d952c00$ac399905 AT a3500>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
In-Reply-To: <000001c8652b$4d952c00$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:

> SOLVED!
>=20
> Thanks again for your input.
> Without you it would not be possible to solve my problem.
>=20
> The Solution for running denyhosts under Cygwin as a Service including yo=
ur
> wonderful cmd:
> 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
> To set the owner to SYSTEM:Administrators for the denyhosts directory

Not really, the only directory that needs a change in permissions is=20
denyhosts/data, sorry I forgot I had made that change... probably found=20
out just like you, by looking at logs.

> Like this:
> In the dir /usr/share
> chown -R SYSTEM:Administrators denyhosts
>=20
> This is needed because if you run the service denyhosts under the SYSTEM
> Account it will start as the User SYSTEM but this user is not allowed to =
run
> denyhosts

To run or to access it's work files?  I'm sure it's the later (since=20
that's the way I have it).

> I found out this by poking around with User rights and User owner.
> A good trick is to install it in the rc.local, install init as System
> service and then redirect the output to a file.
> By magic the file has also the owner SYSTEM:Administrators
>=20
> Thanks again for being patient with me.

Glad I could help.
--=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/

- Raw text -


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