Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I would like to run apache as a limited user on Windows 2008 R2 for security reasons. I've created a user in the user group (let's call it apache), and set the user to run as in the services pane, but then I am unable to start the service (probably not enough permission to bind to port 80). What is the minimum privileges needed to run apache on windows 2008, or what should I do to allow the user apache to bind apache 2.2 to port 80?

Thanks!

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I'm not sure Windows has the same restrictions as Linux on creating service ports under the 1024 mark. Did you make sure you granted the user the rights to logon as a service? This is more than just changing the service to run as that user. Click start, and in the search box, type "gpedit.msc" and hit enter. When it's opened, go to the following path:

\Computer Configuration
  \Windows Settings
    \Security Settings
      \Local Policies
        \User Rights Assignment

Look for the option "Log on as a service", and double click. If the new user is not in there, click "Add user or group", and add it. Try restarting the service again.

If it still fails, try looking in the windows even log, specifically the system, and application logs, and see if there are any errors.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.