Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Windows Server 2003 inetd service keeps exiting References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/