delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/10/09:03:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 10 Oct 2003 09:02:51 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: tilt <thierrygrandjean AT hotmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Error in launching service (apache) installed by cygrunsrv
In-Reply-To: <Sea2-DAV24hQYZkxOjm000004f4@hotmail.com>
Message-ID: <Pine.GSO.4.56.0310100900250.20462@slinky.cs.nyu.edu>
References: <Sea2-DAV24hQYZkxOjm000004f4 AT hotmail DOT com>
Importance: Normal
MIME-Version: 1.0

On Fri, 10 Oct 2003, tilt wrote:

> I launch appache succesfuly on my Windows 2000  by :
> /usr/sbin/apachectl start
>
> I can install apache as new servcice on my Windows 2000 :
> cygrunsrv -I svc_http -p /usr/sbin/httpd.exe
>
> I try to launch it :
> cygrunsrv -S svc_http
> Produce trace in /var/log/svc_http.log :
> [Thu Oct  9 16:21:34 2003] [alert] (22)Invalid argument: setuid: unable to
> change to uid: 65535
> [Thu Oct  9 16:21:35 2003] [alert] (22)Invalid argument: setuid: unable to
> change to uid: 65535
> [Thu Oct  9 16:21:35 2003] [alert] (22)Invalid argument: setuid: unable to
> change to uid: 65535
> [Thu Oct  9 16:21:37 2003] [alert] (22)Invalid argument: setuid: unable to
> change to uid: 65535
> [Thu Oct  9 16:21:38 2003] [notice] Apache/1.3.24 (Cygwin) configured --
> resuming normal operations
> [Thu Oct  9 16:21:38 2003] [notice] Accept mutex: pthread (Default: pthread)
> [Thu Oct  9 16:21:38 2003] [alert] Child 476 returned a Fatal error...
> Apache is exiting!
> [Thu Oct  9 16:21:38 2003] [alert] (22)Invalid argument: setuid: unable to
> change to uid: 65535
>
> My current uid  is 400  and I don't found it in /etc/passwd.
> Is it normal ?
> Why launching apache try to change for 65535 uid ?

Exactly because your user is not in /etc/passwd.  You may be able to run
most of Cygwin without a valid /etc/passwd, but it seems you just hit on
one of the things that require it.

Rename your /etc/{passwd,group} to, say, /etc/{passwd,group}.bak, and
reinstall the base-passwd package.  This should create a valid /etc/passwd
for you that contains your current user.  You may also need to add "ntsec"
to your Cygwin environment variable (or, rather, remove "nontsec" if you
have it).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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