www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Marshall <kei...@silverplatter.com>
Subject os-windows/4880: Running NT service as a different user
Date Thu, 19 Aug 1999 10:39:37 GMT

>Number:         4880
>Category:       os-windows
>Synopsis:       Running NT service as a different user
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Thu Aug 19 03:40:01 PDT 1999
>Originator:     keithm@silverplatter.com
>Release:        1.3.x
Windows NT 4.0
Although report #2303 points out that future versions will include the
ability to run multiple instances of Apache as a service under NT by
changing the service name (-n option) I haven't seen anywhere that it
will be configurable as to what user that service runs as. I know this is
configurable manually using the NT services panel, but it would be very nice
to configure this from the Apache command line, and it isn't difficult since
the username/password fields have to be passed anyway when installing as a
service (they're currently set to NULL in the source code).

In os/win32/service.c, function InstallService, there's a call to CreateService.
Parameters to this include the username and password of an NT user account, 
which could be passed on the command line when installing with the -i option.

I should be able to put together a patch if required.. let me know.
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message