delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/10/16:26:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-MIMEOLE: Produced By Microsoft Exchange V6.0.4417.0
content-class: urn:content-classes:message
MIME-Version: 1.0
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 AT idirect DOT net>
To: "David Monk" <david AT purplebear DOT net>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g9AKQJY23547

> -----Original Message-----
> From: David Monk [mailto:david AT purplebear DOT net]
> Sent: Thursday, October 10, 2002 3:05 PM
> To: cygwin AT cygwin DOT 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/

- Raw text -


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