delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/13/10:15:21

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
MIME-Version: 1.0
Subject: SSHD on Windows 2003 - "Win32 error 1053"
Date: Thu, 13 Jan 2005 09:12:33 -0600
Message-ID: <B1FAB0BF7755FC4597FBCFBDE66EA4A601136507@DCEVS1.tekelec.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Aitken, Sean" <Sean DOT Aitken AT tekelec DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 13 Jan 2005 15:12:33.0957 (UTC) FILETIME=[4EFE4D50:01C4F982]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j0DFF5El023265

Greetings all!

I have been banging against a problem for the past couple of days and I
believe that I've exhausted all resources.  The problem in short is:
I can't get sshd to run as a service on Windows Server 2003 (Win2K3)

The long story is this:
I followed all directions as posted in the docs. I used
"ssh-host-config" to do the initial configuration.

Prerequisits that were performed:
- I am a local admin
- The machine is on a domain, so I "mkpassword -l -d ..." and "mkgroup
-l -d ..." for the environment beforehand
- I ensured the machine had the latest patches (for Windows)
- Ensured the the mount points for Cygwin were added under
"LOCAL_MACHINE" (I chose "all users" during setup)

Actions followed:
- Ran configuration app (ssh-host-config)
- Options chosen were all "yes"
- CYGWIN variables tried: ntsec tty (based on some reference found on
the net)
- Both the "sshd" and "sshd_server" accounts were created, sshd being
disabled and "sshd_server" I enabled 'password does not expire' flag

At that time, I confirmed the service was created, which is was. I then
tried to start it. The error I got was:
"
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
1053:
The service did not respond to the start or control request in a timely
fashion.
"

So, as a test, I used Windows' "runas" feature to log in as
'sshd_server'. (I did have to enable 'log on locally' for this account
in the local policies.

- I performed "runas user:dcesap08\sshd_server c:\cygwin\cygwin.bat",
which worked.
- At the prompt, I ran "/usr/sbin/sshd -D". It worked!
- I tested the server and was able to connect and authenticate!
- I also tried "/usr/sbin/sshd". That worked, too!

Some other things I've looked at:
- CYGWIN env variable has been used as system wide environment var as
well as with "cygrunsrv -I ..."
- I have installed the service manually with "cygrunsrv", still no
difference.
- I have used NT File Monitor for looking for file permission issues;
none were found.
- NT Registry Monitor also showed nothing interesting.
- Ensured the 'sshd_server' user was added to the various policies: 'Run
as service', 'Create token', 'Act as part of the OS'.. Many of these
were already set, but I was just making sure.

So, here I stand. A very functional Cygwin install, a new server, and a
bottle of frustration. If anyone has any pointers to a solution, then
please let me know! In the meantime, I think I might just log in and
manually run the server using 'runas'. We need this to work.

Best regards!
-- 
Sean F. Aitken

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