This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Windows Server 2003 inetd service keeps exiting


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]