delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/17/04:11:14

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-Originating-IP: [194.3.129.141]
X-Originating-Email: [thierrygrandjean AT hotmail DOT com]
From: "tilt" <thierrygrandjean AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: trouble to install apache as a service on Win2K with cygrunsrv command
Date: Fri, 17 Oct 2003 10:15:08 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <Sea2-DAV37yOZFQDLBB0000476c@hotmail.com>
X-OriginalArrivalTime: 17 Oct 2003 08:11:00.0496 (UTC) FILETIME=[335FF100:01C39486]


I install cygwin fron clean environnement.
Now, all the entries in /etc/passwd are populate from current MYDOM (Windows
local domain).

This is the current entry for my user :
sample_user:unused_by_nt/2000/xp:11293:10513:Sample
test,U-MYDOM\sample_user,S-1-5-21-xxxxx
xxx-xxxxxxxx-xxxxxx-1293:/home/sample_user:/bin/bash


I installed cron service.
This service run with no complain.

I install the apache service (I logged as sample_user)


sample_user AT comp1 ~
$ cygrunsrv -I cyg_httpd   -p /usr/sbin/httpd.exe  -u sample_user
Enter password of user `MYDOM\sample_user':
Reenter, please:


The new service look good in my Windows 2000 tools.

But when I try to run it:

sample_user AT comp1 ~
$ cygrunsrv -S cyg_httpd
cygrunsrv: Error starting a service: StartService:  Win32 error 1069:
L'échec d'une ouverture de session a empêché le démarrage du service.
(AKA : can't open session => no server starting)


How can I launch service whith open session (as cygrunsrv -S cyg_httpd -u
sample_user) ?
I don't read anything of this in the cygrunsrv.README.


I can  install cyg_httpd with no user.

But when I try to launch it :

[Thu Oct 16 13:25:07 2003] [alert] (22)Invalid argument: setuid: unable to
change to uid: 65535
[Thu Oct 16 13:25:07 2003] [alert] (22)Invalid argument: setuid: unable to
change to uid: 65535
[Thu Oct 16 13:25:08 2003] [alert] (22)Invalid argument: setuid: unable to
change to uid: 65535
[Thu Oct 16 13:25:08 2003] [alert] (22)Invalid argument: setuid: unable to
change to uid: 65535
[Thu Oct 16 13:25:08 2003] [notice] Apache/1.3.24 (Cygwin) configured -- 
resuming normal operations
[Thu Oct 16 13:25:08 2003] [notice] Accept mutex: pthread (Default: pthread)
[Thu Oct 16 13:25:08 2003] [alert] Child 1812 returned a Fatal error...
Apache is exiting!
[Thu Oct 16 13:25:08 2003] [alert] (22)Invalid argument: setuid: unable to
change to uid: 65535


My id is good :

$ id
uid=11293(sample_user) gid=10513(Utilisa. du domaine)
groups=544(Administrateurs),5
45(Utilisateurs),10513(Utilisa. du domaine)

Why the apache server try to change to uid 65535 ?




Note : I can run apache server by  :
 /usr/sbin/apachectl start &

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