473,435 Members | 1,774 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,435 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 25805
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?
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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
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
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.