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

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
Date: Thu, 13 Jan 2005 16:27:39 +0100
From: Walter Garcia-Fontes <walter DOT garcia AT upf DOT edu>
To: cygwin AT cygwin DOT com
Subject: Re: SSHD on Windows 2003 - "Win32 error 1053"
Message-ID: <20050113152739.GG3036@upf.edu>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <B1FAB0BF7755FC4597FBCFBDE66EA4A601136507 AT DCEVS1 DOT tekelec DOT com>
Mime-Version: 1.0
In-Reply-To: <B1FAB0BF7755FC4597FBCFBDE66EA4A601136507@DCEVS1.tekelec.com>
User-Agent: Mutt/1.4i
X-URL: http://puna.upf.edu
X-imss-version: 2.8
X-imss-result: Passed
X-imss-approveListMatch: *@upf.edu
X-IsSubscribed: yes

Have you looked at the archives? Look at 

http://sources.redhat.com/ml/cygwin/2004-11/msg00248.html

and the preceding messages in the same thread!,
Walter

* Aitken, Sean <Sean DOT Aitken AT tekelec DOT com> [050113 16:19]:
> 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/

-- 
Walter Garcia-Fontes               
Barcelona


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