473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 25796
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*********@SatoriGroupInc.com> wrote in message
news:#T**************@TK2MSFTNGP10.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*********@SatoriGroupInc.com> wrote in message
news:#T**************@TK2MSFTNGP10.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 #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*********@SatoriGroupInc.com> wrote in message
news:OC**************@TK2MSFTNGP09.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*********@SatoriGroupInc.com> wrote in message
news:#T**************@TK2MSFTNGP10.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 #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
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...
2
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...
4
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
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...
7
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
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...
0
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...
0
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)...
12
by: shing | last post by:
How would you make a program that kills a system process?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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...

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.