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 Reply-To: Cygwin List Message-Id: <6.2.1.2.0.20050725162138.03d5bd70@pop.prospeed.net> Date: Mon, 25 Jul 2005 16:27:57 -0400 To: Torsten Bronger , cygwin AT cygwin DOT com From: Larry Hall 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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/