delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/25/16:29:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.1.2.0.20050725162138.03d5bd70@pop.prospeed.net>
Date: Mon, 25 Jul 2005 16:27:57 -0400
To: Torsten Bronger <bronger AT physik DOT rwth-aachen DOT de>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: sshd wouldn't start as a Windows service
In-Reply-To: <87zmsafymc.fsf@wilson.rwth-aachen.de>
References: <87zmsafymc DOT fsf AT wilson DOT rwth-aachen DOT de>
Mime-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j6PKT73I017951

At 03:56 PM 7/25/2005, you wrote:
>Hallöchen!
>
>I can start sshd directly with
>
>    /usr/sbin/sshd -D
>
>which works fine.  However, I want it to be a real service, so I
>called
>
>cygrunsrv -S sshd
>
>This results in a Windows timeout error #1053:
>
>$ cygrunsrv.exe -S sshd
>cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1053:
>The service didn't reply in time to the start or control request.
>
>What can I do about it?
>
>
>This is what I had done:
>
>I wiped out my old Cygwin installation in Win2k and installed the
>latest version I could find.  Included was OpenSSH_4.1p1.
>
>>From my old installation, there still is the global environment
>variable CYGWIN="ntsec tty".  I called ssh-host-config, but copied
>my old config files over the new ones.  

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

There's your problem.  You really can't do this unless you change the 
permissions on these files to be owned by SYSTEM.


>I use the defaults but
>disable root login and password authentication.  All ssh-related
>files in /etc/ have my (admin) account as owner, and their

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ditto.

>priviledges are set correctly.  Priviledge separation is off.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Not from what you've said so far.  You also need to be concerned about
/var/log/sshd.log.  Permissions there need to be the same as above.
You may find it easier to just let the config scripts do their work and
then edit your changes back in, especially where you suggest that the 
changes are not extensive.




--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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