469,927 Members | 1,785 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

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 24722
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Suma | last post: by
2 posts views Thread by gil sh via .NET 247 | last post: by
4 posts views Thread by Peter Steele | last post: by
1 post views Thread by Manfred Braun | last post: by
reply views Thread by Darren Mart via DotNetMonster.com | last post: by
reply views Thread by Tom Plunket | last post: by
12 posts views Thread by shing | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.