delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/25/13:39:42

X-Spam-Check-By: sourceware.org
Message-ID: <44258E52.5020706@cygwin.com>
Date: Sat, 25 Mar 2006 13:39:14 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051223 Fedora/1.5-0.2.fc4.remi Thunderbird/1.5 Mnenhy/0.7.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.19: cygrunsrv problem running Apache under user nobody
References: <20060324215304 DOT 25022 DOT qmail AT web31814 DOT mail DOT mud DOT yahoo DOT com>
In-Reply-To: <20060324215304.25022.qmail@web31814.mail.mud.yahoo.com>
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

Gerry Reno wrote:
> Today I tried starting httpd with cygrunsrv with similar results:
> 
> $ cygrunsrv -S httpd
> cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
> 1062:
> The service has not been started.
> 
> 
> greno AT RENOG11-WIN01 ~/docs
> $ ps -efl
>      UID     PID    PPID TTY     STIME COMMAND
>    greno    3404       1 con  22:46:08 /usr/bin/bash
>   nobody    1420       1   ?  16:49:41 /usr/sbin/httpd
>   nobody    2800    1420   ?  16:49:42 /usr/sbin/httpd
>   nobody    2828    1420   ?  16:49:42 /usr/sbin/httpd
>   nobody    2248    1420   ?  16:49:42 /usr/sbin/httpd
>   nobody    1264    1420   ?  16:49:42 /usr/sbin/httpd
>   nobody    3208    1420   ?  16:49:42 /usr/sbin/httpd
>    greno    2736    3404 con  16:49:47 /usr/bin/ps
> 
> As you can see the service does start even though it is reporting that
> it is not started.  Am I configuring something wrong?


Good question.  You might want to start here:

> Problem reports:       http://cygwin.com/problems.html

Also, you need to make sure that the user you created has all the
proper permissions httpd needs to run as a service.  If it needs
to switch user contexts, etc., this is important.  I should point
out that adding such a new user is a security hole, if that's a
concern for you.  Perhaps you'll just want to try getting this
working with the default SYSTEM user.  If that works, you can
backtrack from there.  You can also consult the openssh ssh-host-config
script.  You can follow the steps it uses to create a new user with
the proper permissions to run sshd on W2K3 (where SYSTEM doesn't have
the proper permissions).

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