www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/29/09:41:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Sun, 29 Aug 2004 09:41:25 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Marcin Lewandowski <lewandom AT op DOT pl>
cc: cygwin AT cygwin DOT com
Subject: Re: cygrunsrv xinetd problem
In-Reply-To: <001501c48db4$059224f0$3601010a@plas>
Message-ID: <Pine.GSO.4.61.0408290934290.14676@slinky.cs.nyu.edu>
References: <001501c48db4$059224f0$3601010a AT plas>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Sun, 29 Aug 2004, Marcin Lewandowski wrote:

> Hi,
>
> I'm new to cygwin, and at the beginning I have a problem
> running xinetd service.

Again, the advice below is very generic, and has to do with services in
general, not xinetd in particular.

First off, see (and follow) the Cygwin problem reporting guidelines at
<http://cygwin.com/problems.html>, particularly the part about providing
the output of "cygcheck -svr" as an uncompressed text *attachment*.

> When I execute the following:
> $ cygrunsrv -S xinetd
> i get:
> cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062
> Usluga nie zostala uruchomiona.

$ net helpmsg 1062
The service has not been started.

> the same when running
> $ net start xinetd
> ...
> System error 1067 has occured.
> ...

$ net helpmsg 1067
The process terminated unexpectedly.

The weird part is that "net start" and "cygrunsrv -S" give different
errors, but maybe that's expected.  What does the Windows Event Log show?

> When I run xinetd manually, it starts normally, but since I run it as a
> normal user,

Bingo.  Here's a guess (pending the output of "cygcheck -svr"): you
installed Cygwin for "Just Me" instead of "All Users".  Therefore, the
SYSTEM user doesn't see your mounts, and can't find the files.  Re-mount
all your mounts as system mounts (Google for "cygwin remount system" for a
recipe) and try starting your service again.

> it hasn't got enough privileges and I get setuid error when trying to
> telnet onto the server.
> /var/log/xinetd.log contains nothing.

As said above, look in the Event Log, but I suspect that remounting your
mounts as system mounts will do the trick.
	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!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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