HttpAddUrl permissions
Posted
by Ghostrider
on Stack Overflow
See other posts from Stack Overflow
or by Ghostrider
Published on 2010-04-01T01:10:22Z
Indexed on
2010/04/01
1:13 UTC
Read the original article
Hit count: 857
I'm trying to run a custom WinHTTP based web-server on Windows Server 2008 machine.
I pass "http://*:22222/" to HttpAddUrl
When I start my executable as Administrator or LocalSystem everything works fine. However if I try to run it as NetworkService to minimize security risks (since there are no legitimate reasons for the app to use admin rights) function fails with "Access Denied" error code.
I wasn't aware of NetworkService having any restrictions on which ports and interfaces it can listen on.
Is there a way to configure permissions in such a way so that I actually can run the app under NetworkService account and connect to it from other internet hosts?
© Stack Overflow or respective owner