This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error in launching service (apache) installed by cygrunsrv


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]