X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.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@a3500>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  quoted-printable
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
In-Reply-To: <000001c8652b$4d952c00$ac399905@a3500>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

