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@cygwin.com>
Reply-To: cygwin@cygwin.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@cygwin.com
Subject: Re: 1.5.19: cygrunsrv problem running Apache under user nobody
References: <20060324215304.25022.qmail@web31814.mail.mud.yahoo.com>
In-Reply-To: <20060324215304.25022.qmail@web31814.mail.mud.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@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/

