Permissions for Process.Kill()

M

Matthew Wieder

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!
 
C

Chris Capel

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
 
M

Matthew Wieder

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!
 
M

Matthew Wieder

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.
 
W

Willy Denoyette [MVP]

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.
 
M

Matthew Wieder

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top