delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/17/12:11:15

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
Message-ID: <428A16C5.DE002466@dessent.net>
Date: Tue, 17 May 2005 09:07:33 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Windows Server 2003 inetd service keeps exiting
References: <BAY9-F1710D4B6F6F83EB5BD659AF3160 AT phx DOT gbl>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Krigare Warrior wrote:

> However I am unable to run inetd as a service.  It will run for a few
> seconds (say 30) then it simply exits (according to the event log in
> windows).  I have tried to install it as a service using:  cygrunsrv -I
> inetd -n -p /usr/sbin/inetd.exe  .  It shows up in the Services control
> panel, and I can start/stop it.  But again it will only run for about 30
> secs.

Under 2003 the SYSTEM account (the default account under which services
run) has reduced privileges.  It may be that you need to create a
special account with extra privileges to run the service.  Cygserver,
cron, and sshd already do this.  You can look at their configure scripts
for guidance, but basically just create a new user (e.g. inetd_server),
add it to the administrators group, and give it the required privileges:

   editrights -a SeAssignPrimaryTokenPrivilege -u "${username}" &&
   editrights -a SeCreateTokenPrivilege -u "${username}" &&
   editrights -a SeDenyInteractiveLogonRight -u "${username}" &&
   editrights -a SeDenyNetworkLogonRight -u "${username}" &&
   editrights -a SeDenyRemoteInteractiveLogonRight -u "${username}" &&
   editrights -a SeIncreaseQuotaPrivilege -u "${username}" &&
   editrights -a SeServiceLogonRight -u "${username}"

Then install the service to run as that user.

Brian

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