Mail Archives: cygwin/2003/10/17/14:45:37
On Fri, 17 Oct 2003, tilt wrote:
> 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'echec d'une ouverture de session a empeche le demarrage 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 &
Your mounts are probably user mounts, and cygrunsrv running under SYSTEM
doesn't know where /etc (or, rather, /) is, and thus can't access
/etc/passwd. In the future, this information could be supplied with the
output of "cygcheck -svr" (*attached* to your message), as per
<http://cygwin.com/problems.html>.
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 -