This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Windows Server 2003 inetd service keeps exiting
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 17 May 2005 09:07:33 -0700
- Subject: Re: Windows Server 2003 inetd service keeps exiting
- References: <BAY9-F1710D4B6F6F83EB5BD659AF3160@phx.gbl>
- 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/