473,698 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Server 2003 SYSTEM Account

Hi,

I have written a Windows Service component in C# which manages processes on
the server. The code is required to terminate these processes when they
timeout. The Windows Service runs under the SYSTEM account. I check in code
whether the user belongs to the Administrators group using the
WindowsPrincipl e class which it does. When it comes to terminating the
processes using the Process class, I am not able to terminate the processes.
If I restart the service to run under the local Administrator's account, I
am able to terminate the processes? It doesn't really make any sense as both
users are part of the Administrators group.

Windows Server 2003 runs SP1, .NET 1.1.
Any ideas?
Cheers
Simon.
Mar 13 '06 #1
2 1833
Update:

It turns out this is happening on one Windows 2003 Server machine.

I have tested this on my Virtual PC and it works!?!

Regards
Simon.

"Simon Hart" <srhartone@[no spam]yahoo.com> wrote in message
news:um******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

I have written a Windows Service component in C# which manages processes
on the server. The code is required to terminate these processes when they
timeout. The Windows Service runs under the SYSTEM account. I check in
code whether the user belongs to the Administrators group using the
WindowsPrincipl e class which it does. When it comes to terminating the
processes using the Process class, I am not able to terminate the
processes. If I restart the service to run under the local Administrator's
account, I am able to terminate the processes? It doesn't really make any
sense as both users are part of the Administrators group.

Windows Server 2003 runs SP1, .NET 1.1.
Any ideas?
Cheers
Simon.

Mar 15 '06 #2

"Simon Hart" <srhartone@[no spam]yahoo.com> wrote in message
news:um******** ******@TK2MSFTN GP12.phx.gbl...
| Hi,
|
| I have written a Windows Service component in C# which manages processes
on
| the server. The code is required to terminate these processes when they
| timeout. The Windows Service runs under the SYSTEM account. I check in
code
| whether the user belongs to the Administrators group using the
| WindowsPrincipl e class which it does. When it comes to terminating the
| processes using the Process class, I am not able to terminate the
processes.
| If I restart the service to run under the local Administrator's account, I
| am able to terminate the processes? It doesn't really make any sense as
both
| users are part of the Administrators group.
|
| Windows Server 2003 runs SP1, .NET 1.1.
| Any ideas?
| Cheers
| Simon.
|
|

SYSTEM is a pseudo account, it doesn't really exists in the account
database, so considering it a member of Administrators is not correct.
In order to be able to kill another process, the caller needs the
"SeDebugPrivile ge", "Administrators " do have this privilege by default. So
if you wan't to be able to kill other processes, you have to add SYSTEM to
the "Debug programs" entry in Local Security Settings - Local Policies -
User Rights Assignment, or you have to enable this privilege from code
(through PInvoke).

Willy.
Mar 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4452
by: Nathan Sokalski | last post by:
I want to set up SQL Server on Windows XP Pro so that I can use the database capabilities of ASP and IIS. I am probably using some incorrect settings, but I am not sure what they are. Here is what I am currently doing: When I run sqlservr.exe I see the following: 2003-12-19 15:51:28.20 server Microsoft SQL Server 2000 - 8.00.760 (Intel X8 6)
9
3877
by: Kevin Spencer | last post by:
We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail fails now with the following message: System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object args, Boolean byrefModifiers, Int32 culture, String namedParameters) +0 System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
2
3208
by: Vaap | last post by:
I did lot of googling to see if I can solve the SQL server not found problem while trying to run ASP.Net community starter kit from an XP machine to Windows 2003 server hosting SQL server 2000 database. Tried all possible combinations but it still fails. I have Windows 2003 server having SQL Server 2000 installed with SP2. The installation went Ok on a XP professional machine and I was able to create database and user logins etc on...
7
1883
by: Cliff Harris | last post by:
I don't currently have an installation of Windows 2003 server, or I could answer this myself. After having a client install ASP.NET on Windows 2003, I then tried to find the aspnet_wp.exe process but he claims it's not here. Now at first I didn't beleive him, however, I wondered if now that Asp.Net is integrated into IIS in WIndows 2003, is there a separate process? In the end, what I want to find out is, on a default installation of...
2
1675
by: Craig Neuwirt | last post by:
Does a user being impersonated within and ASP.NET application (using programatic impersonation) on a Windows 2003 Server machine need any different privileges or policies than the same ASP.NET user and application running under Windows XP. I am using a set of classes that expose the COM Windows TaskScheduler. When I try to instantiate the COM class within an ASP.NET Application on Windows 2003 Server, I get an access denied, but not when...
10
3479
by: Ger | last post by:
I am having problems using VB.Net's Management base object on a machine hosting Windows Server 2003. I am trying to set file permissions from a Windows Service. These files may be loacted on a local machine or somewhere on the network. I use the Management Base Object to set these permissions which works perfectly when the windows service is running on an XP machine. However, when the service is running on a Windows Server 2003 machine I...
1
1380
by: SQLScott | last post by:
Searched the forum for an answer to this particular question and did not find an answer to i am posting. I have created a Windows Service in VB.Net. I can successfully install and start the service on a Windows 2000 Server box but cannot on a windows 2003 box. The error I receive is the following: Server 'ServiceName' failed to start. Verify that you have sufficient privileges to start system Services.
3
1838
by: Saran | last post by:
I have a windows service which instantiates the Powerpoint Application using PIA. When I am running this windows service am not able to open the Microsoft powerpoint application. This problem happens in XP and win 2000, Where as the same works fine in win 2003 server. Any suggestions to make this work in XP and Win 2000.
0
2308
by: CESAR DE LA TORRE [MVP] | last post by:
I am using WSE 3.0 with Visual Studio 2005, specifically I'm using Kerberos authentication and passing Kerberos ticket from Presentation Tier (VSTO.2005 client) to Server Tier through our Web Services (based on WSE 3.0). Having our WSE 3.0-WebService over Windows Server 2003, everything works great, but, over Windows XP, I have a problem (which is documented in WSE 3.0 help) but its workaround does not work properly (at least with my...
27
4714
by: pisquem | last post by:
I am building an windows service that is to be deployed on a windows server 2003 and I want to have activity written to the event log, I want its own log called ('CustomLog') Below is what I have so far...its builds fine but when I go to start the service i get the following error. --------------------------- Services ---------------------------
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7743
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.