Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-MIMEOLE: Produced By Microsoft Exchange V6.0.4417.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: RE: sshd problems
Date: Thu, 10 Oct 2002 15:15:52 -0400
Message-ID: <BADF3C947A1BD54FBA75C70C241B0B9E762F90@ex02.idirect.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
From: "Harig, Mark A." <maharig@idirect.net>
To: "David Monk" <david@purplebear.net>, <cygwin@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g9AKQJY23547


> -----Original Message-----
> From: David Monk [mailto:david@purplebear.net]
> Sent: Thursday, October 10, 2002 3:05 PM
> To: cygwin@cygwin.com
> Subject: Re: sshd problems
> 
> 
> A further update on this issue. If I do some forcing, ie. 
> using an alternate
> key and chowning /var/empty to myself, I _can_ get sshd to 
> run. I can't
> login, but it does run.
> Keeping in mind the weird c:\var\log\sshd.log file 
> appearance, I tested it
> out. I deleted c:\var. I started sshd from the shell as 
> /usr/sbin/sshd -h
> /home/dmonk/ssh_host_rsa_key -d -d -d. It ran and no 
> c:\var\log\sshd.log was
> created. However, when I tried to start the service, the 
> c:\var\log\sshd.log
> was created. Somehow, when it runs as LocalSystem, it does 
> not have the
> proper cygwin mount points available. This may be the root of 
> the issue. How
> can this be fixed?
> 
> David
> 

#!/bin/sh

cygrunsrv --install sshd -e "CYGWIN=glob ntsec binmode" \
   -d "Cygwin SSHD" \
   -p /usr/sbin/sshd.exe \
   -1 /var/log/sshd.log \
   -2 /var/log/sshd.log \
   -a "-e -D -ddd" \
&& \
cygrunsrv --start sshd


The '-1' specifies where standard output is to be redirected, the '-2'
specifies where standard error is to be redirected.  My guess is that
this will fix your problem with c:\var\log, but I don't know what is
causing that to happen so it is only a guess.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

