Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: sshd problems Date: Thu, 10 Oct 2002 15:15:52 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Harig, Mark A." To: "David Monk" , Content-Transfer-Encoding: 8bit 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/