Windows Service Minimum Permissions?

From: Martin Naughton (mn@nospam.com)
Date: 11/22/02


From: "Martin Naughton" <mn@nospam.com>
Date: Fri, 22 Nov 2002 01:32:42 -0800


Hi,

I'm by no means a specialist on Windows security, so the
problem is likely
to be caused by my ignorance of permissions.

In short, I would like to determine the "Least Privilege"
user
account/group I should apply to a Windows Service, in
order that I be able
to do the following:

1) Execute
2) Interact with a SQL Server database
3) Interact with an MSMQ
4) Write to the EventLog
5) Watch Debug/Trace.Writeline output from a remote machine

Anyway, here's the problem I'm getting:

I have a Windows Service (developed in VB.NET) running on
a remote computer.
Initially, I configured the LogOn properties of the
Service, such that it
runs under a user account that belonged to the
Administrators Group on the
remote computer.

>From my local computer, I invoke SysInternals' DbgView.exe
and Connect to
the remote machine - no problem. I can happily watch
the .NET
Debug.WriteLine output from the Windows Service on the
remote machine.

Now, in a move to tighten up the security a little, I'm
attempting to run
the Windows Service under a "Least Privilege" user
account. A domain user
account, set up as a "standard" user was defined for me by
a network admin.

I applied the new user account to the Windows Service,
then Start it.
This time, I see no Debug messages in my local DbgView
window.
As a result, I'm not certain whether the Service is
working (but failing to
output Debug messages) or just not working at all.

It seems to be permissions thing :
If I add the domain user account to the remote machine's
local
Administrators group, I see the messages.

If I add the domain user account to the remote machine's
local Power Users
group, I don't see the messages.

The Debugger Users Group doesn't seem to help, either.

In case it's important, I'm connecting to the remote
machine using Windows
Terminal Services.

I log onto the machine via Terminal Services, using my own
domain account,
a member of the remote machine's Administrators group (not
the "Least
Privilege" one).

Any ideas?

Thanks,
Martin



Relevant Pages

  • Win 98 To Win XP Remote Connection
    ... I am trying to connect to a Windows XP Professional computer located in our ... get to the logon screen of the XP machine by using Remote Desktop Connection ... user account in the remote user's group and have checked the "allow remote ... access" option on the machine but I still get that error message. ...
    (microsoft.public.windows.mediacenter)
  • SecurityFocus Microsoft Newsletter #228
    ... RaidenHTTPD Remote File Disclosure Vulnerability ... Microsoft Outlook Web Access Login Form Remote URI Redirecti... ... Microsoft Windows Hyperlink Object Library Buffer Overflow V... ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #212
    ... MICROSOFT VULNERABILITY SUMMARY ... ARJ Software UNARJ Remote Directory Traversal Vulnerability ... Microsoft Windows XP WAV File Handler Denial Of Service Vuln... ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #229
    ... Windows NTFS Alternate Data Streams ... MICROSOFT VULNERABILITY SUMMARY ... VBulletin Forumdisplay.PHP Remote Command Execution Vulnerab... ... AWStats Debug Remote Information Disclosure Vulnerability ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #232
    ... Windows Firewalls Lacking ... MICROSOFT VULNERABILITY SUMMARY ... Gene6 FTP Server Remote Default Install Code Execution Vulne... ... Relevant URL: http://www.securityfocus.com/bid/12736 ...
    (Focus-Microsoft)