X-Spam-Check-By: sourceware.org Message-ID: <455375F1.4080108@cygwin.com> Date: Thu, 09 Nov 2006 13:39:45 -0500 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060916 Fedora/1.5.0.7-1.fc4.remi Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Still seeing "Win32 error 1062" starting sshd with "cygrunsrv -S" with openssh-4.5p1-1. Suggestions, please? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Brian Kasper wrote: > Hoping that the latest release of openssh would fix the problem I'm > having starting sshd as a service, I updated my Cygwin install to Ms. > Vinschen's latest release, 4.5p1-1. I then re-ran ssh-host-config. > > Unfortunately, I'm still unable to start sshd as a service, either with > or without privilege separation. I still receive the error message > "cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error > 1062: The service has not been started.". > > I feel like I'm missing something obvious, but I've searched the mailing > list archives and Googled for every combination of Cygwin, sshd, and > cygrunsrv I can think of to no avail. > > If anyone out there has any suggestions, I would be very grateful. You have the same problem as Jason. Get rid of all the old cygwin1.dlls that you have on your system. Keep just the one in "C:/cygwin/bin". If you still have problems after that, you may have tried to start 'sshd' from the command line. This will set the improper permissions on some important files/directories, as others have suggested. See the '/usr/bin/ssh-host-config' script for the files/directories involved and their proper ownership and permissions. You may be able to get away with just running the script again (don't know for sure - don't have the script handy). You may want to try that first before resorting to making the like changes by hand. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (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/