473,758 Members | 2,401 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Permissions for Process.Kill()

What permissions must a user have to be able to succesffuly execute a
Process.Kill? I can run it with Admin privleges but not with regular
user priveleges - I get an "Access is Denied." The client should be
able to run our software was a regular user, so what additional
permission must I grant that user for this to work?
thanks!

Nov 15 '05 #1
6 25873
I believe the relevant permissions aren't .NET imposed, but system imposed.
If a process is run under the local system account or the administrator
account, or even under a different regular user's account, then a user
process isn't able to kill it. Is the process you're trying to kill running
under the same account as your program is running under?

Chris

"Matthew Wieder" <De*********@Sa toriGroupInc.co m> wrote in message
news:#T******** ******@TK2MSFTN GP10.phx.gbl...
What permissions must a user have to be able to succesffuly execute a
Process.Kill? I can run it with Admin privleges but not with regular
user priveleges - I get an "Access is Denied." The client should be
able to run our software was a regular user, so what additional
permission must I grant that user for this to work?
thanks!

Nov 15 '05 #2
no - they're running under different account. If given enough
permissions, I should be able to kill the process though - I'm just
trying to determine what are the correct permissions to give.
thanks!

Chris Capel wrote:
I believe the relevant permissions aren't .NET imposed, but system imposed.
If a process is run under the local system account or the administrator
account, or even under a different regular user's account, then a user
process isn't able to kill it. Is the process you're trying to kill running
under the same account as your program is running under?

Chris

"Matthew Wieder" <De*********@Sa toriGroupInc.co m> wrote in message
news:#T******** ******@TK2MSFTN GP10.phx.gbl...
What permissions must a user have to be able to succesffuly execute a
Process.Kil l? I can run it with Admin privleges but not with regular
user priveleges - I get an "Access is Denied." The client should be
able to run our software was a regular user, so what additional
permission must I grant that user for this to work?
thanks!



Nov 15 '05 #3
There are specific permissionsto be bale to kill a process and I'm
asking what they are - I know if I add the user to the admin group it
will work, I'm trying to only give him the permissions he needs. Can
anyone help?
thanks.

Chris Capel wrote:
You would have to have some way to add the user to a windows group with such
permissions. The installation for the program with accomplish this, and it
would have to be run under the administrator account. I recommed you search
the Platform SDK for the methods you need to do such a thing; this isn't
really a CSharp or .NET related issue.

Chris

"Matthew Wieder" <De*********@Sa toriGroupInc.co m> wrote in message
news:OC******** ******@TK2MSFTN GP09.phx.gbl...
no - they're running under different account. If given enough
permissions , I should be able to kill the process though - I'm just
trying to determine what are the correct permissions to give.
thanks!

Chris Capel wrote:

I believe the relevant permissions aren't .NET imposed, but system
imposed.
If a process is run under the local system account or the administrator
account, or even under a different regular user's account, then a user
process isn't able to kill it. Is the process you're trying to kill
running
under the same account as your program is running under?

Chris

"Matthew Wieder" <De*********@Sa toriGroupInc.co m> wrote in message
news:#T***** *********@TK2MS FTNGP10.phx.gbl ...
What permissions must a user have to be able to succesffuly execute a
Process.Kil l? I can run it with Admin privleges but not with regular
user priveleges - I get an "Access is Denied." The client should be
able to run our software was a regular user, so what additional
permissio n must I grant that user for this to work?
thanks!



Nov 15 '05 #4
Matthew Wieder wrote:
|| There are specific permissionsto be bale to kill a process and I'm
|| asking what they are - I know if I add the user to the admin group it
|| will work, I'm trying to only give him the permissions he needs. Can
|| anyone help?
|| thanks.
||
Processes created with the default security descriptor can only be killed by their creators and Administrators.

Willy.

Nov 15 '05 #5
What specifically needs the admin privleges? Obviously the user doesn't
need admin priveleges on the file system for example. What specific reg
keys or roles can I add the user to to allow him to kill a process.
thanks.

Willy Denoyette [MVP] wrote:
Matthew Wieder wrote:
|| There are specific permissionsto be bale to kill a process and I'm
|| asking what they are - I know if I add the user to the admin group it
|| will work, I'm trying to only give him the permissions he needs. Can
|| anyone help?
|| thanks.
||
Processes created with the default security descriptor can only be killed by their creators and Administrators.

Willy.


Nov 15 '05 #6
Thank you!

Willy Denoyette [MVP] wrote:
Matthew Wieder wrote:
|| What specifically needs the admin privleges? Obviously the user
|| doesn't
|| need admin priveleges on the file system for example. What specific
|| reg
|| keys or roles can I add the user to to allow him to kill a process.
|| thanks.
||

Depends on the OS, check User Policy assignments, the user (or group) needs "Debug Program" privileges.

Willy.


Nov 15 '05 #7

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

Similar topics

0
327
by: Suma | last post by:
H When I do a process.kill, is all of the memory used by that process reclaimed I mean, the memory space occupied by both .NET managed variables and the COM objects that I use in my code How good is it to use process.kill I am asking this because whenever i try to close my application, it does not shut down at the same point, it continues to do other operations pending in the queue as I am using application.doevents extensively.
2
458
by: gil sh via .NET 247 | last post by:
Hi, I am looking for an event thet raises when the proccess is killed (for ex: Shotdown from the TaskManeger) I have allready tried: Form.Close Form.Dispose Application.Exit Process.Exited Finalize
4
4695
by: Peter Steele | last post by:
I want to trap any attempts to kill my C# application and so that I can execute shutdown code and let the app die gracefully. How can this be done?
1
3150
by: Manfred Braun | last post by:
Hi All, I am writing a tool, which should monitor some exe-processes, which are not very solid. Th main function is to re-start them, if they hung, but this is complicated. I can detect things like no longer generating IO or such properties and I use WMI to do that. I am also looking for attached subprocesses, which are one of the system debuggers. I wrote a test-program, which creates a divide by zero error after some seconds. I can...
7
10185
by: yaron | last post by:
Hi, I am looking for doing this : void OnKillProcess() { do Cleanup; } i don't want to use ~MyClass() (or Finalize), because i wan't that
1
3601
by: Lee Gillie | last post by:
I need to be able to kill a process programmatically under ASP.NET. IIS runs under the local system account. The user accessing the web is using anonymous access. We would prefer NOT to grant elevated security to the proxy used for anonymous access. Is there a way to either establish a temporary security context, programmatically for the .NET Framework Process.Kill to operate under? Or perhaps a way to give the compiled binary produced...
0
1539
by: Darren Mart via DotNetMonster.com | last post by:
The question: are any user groups besides Administrators permitted to kill processes? Need more info? Happy to oblige: - I'm writing a business object that will run as a service under a specific username (won't run as System). - the object creates an instance of Word and automates a Mail Merge. (Yes, I know this is not recommended -- that's another thread for another day...)
0
1196
by: Tom Plunket | last post by:
Google indicates that wx.Process.Kill hadn't been implemented some time ago in wxPython for Win32. Is that still the case? It's kind of a drag since several sources (including wxPython wiki) strongly advise (by my reading and intended use) using wxProcess over the built-in stuff, but it's not entirely useful if I can't kill long-running processes from an external driver. To tie into my previous question about mocking in Python, I've...
12
6783
by: shing | last post by:
How would you make a program that kills a system process?
0
9492
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...
1
9885
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
9740
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8744
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
7287
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
5175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5332
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3832
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2702
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.