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]

trouble to install apache as a service on Win2K with cygrunsrv command



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


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